removed time comparison hack

This commit is contained in:
skilion 2016-12-25 16:39:54 +01:00
parent ad4e910e55
commit c9016845c3

View file

@ -283,8 +283,6 @@ final class SyncEngine
case ItemType.file:
if (isFile(path)) {
SysTime localModifiedTime = timeLastModified(path);
import core.time: Duration;
item.mtime.fracSecs = Duration.zero; // HACK
if (localModifiedTime == item.mtime) {
return true;
} else {
@ -401,8 +399,6 @@ final class SyncEngine
if (exists(path)) {
if (isFile(path)) {
SysTime localModifiedTime = timeLastModified(path);
import core.time: Duration;
item.mtime.fracSecs = Duration.zero; // HACK
if (localModifiedTime != item.mtime) {
log.vlog("The file last modified time has changed");
string id = item.id;