mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
fix different time resolution when comparing
This commit is contained in:
parent
88d2a94078
commit
1c7b726994
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue