fix different time resolution when comparing

This commit is contained in:
skilion 2017-03-12 17:25:51 +01:00
commit 1c7b726994

View file

@ -308,6 +308,9 @@ final class SyncEngine
case ItemType.file:
if (isFile(path)) {
SysTime localModifiedTime = timeLastModified(path);
// HACK: reduce time resolution to seconds before comparing
item.mtime.fracSecs = Duration.zero;
localModifiedTime.fracSecs = Duration.zero;
if (localModifiedTime == item.mtime) {
return true;
} else {