From 1c2b2575f744226639652767cc39acddcd3a7afd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 9 Apr 2015 03:47:43 -0400 Subject: [PATCH] Fix excessive file sync mtime updates/checks (probably?) --- chrome/content/zotero/xpcom/storage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index eb259f84e..ac1940457 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -864,13 +864,14 @@ Zotero.Sync.Storage = new function () { Zotero.debug("Remote mod time for item " + lk + " is " + itemModTimes[item.id]); // Ignore attachments whose stored mod times haven't changed - if (row.storageModTime == itemModTimes[id]) { + if (row.storageModTime == itemModTimes[item.id]) { Zotero.debug("Storage mod time (" + row.storageModTime + ") " + "hasn't changed for item " + lk); continue; } - Zotero.debug("Marking attachment " + lk + " for download"); + Zotero.debug("Marking attachment " + lk + " for download " + + "(stored mtime: " + itemModTimes[item.id] + ")"); updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_FORCE_DOWNLOAD; }