rename, fix wrong logic.

This commit is contained in:
Chris Lu
2021-08-14 21:46:34 -07:00
parent cb53802752
commit c34747c79d
8 changed files with 560 additions and 549 deletions

View File

@@ -239,7 +239,7 @@ func shouldSendToRemote(entry *filer_pb.Entry) bool {
if entry.RemoteEntry == nil {
return true
}
if entry.RemoteEntry.LocalMtime < entry.Attributes.Mtime {
if entry.RemoteEntry.LastLocalSyncTsNs/1e9 < entry.Attributes.Mtime {
return true
}
return false