mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-19 13:51:23 +00:00
Fix file updates being checked against wrong timestamp (#300)
This commit is contained in:
parent
f9008aa736
commit
44d33d32f4
|
@ -252,7 +252,7 @@ public class FileBridge {
|
||||||
// the modified time is the same for both write operations due to the file system modified time resolution being limited
|
// the modified time is the same for both write operations due to the file system modified time resolution being limited
|
||||||
// We then can't identify changes purely based on the modified time, so the file size is the next best option
|
// We then can't identify changes purely based on the modified time, so the file size is the next best option
|
||||||
// This might result in double change detection in rare cases, but that is irrelevant as it prevents files from being blanked
|
// This might result in double change detection in rare cases, but that is irrelevant as it prevents files from being blanked
|
||||||
var changed = !newDate.equals(getLastModified()) || newSize > lastSize;
|
var changed = !newDate.equals(lastModified) || newSize > lastSize;
|
||||||
lastSize = newSize;
|
lastSize = newSize;
|
||||||
lastModified = newDate;
|
lastModified = newDate;
|
||||||
return changed;
|
return changed;
|
||||||
|
|
Loading…
Reference in a new issue