[gnome-documents/gnome-3-22] documents: Fix the retrieval of the cache's modification time



commit 28a33a3273dd813411827b720aa8b56da75ef838
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Apr 20 11:51:47 2017 +0200

    documents: Fix the retrieval of the cache's modification time
    
    Gio.FILE_ATTRIBUTE_TIME_MODIFIED returns a value in seconds, not
    microseconds.
    
    Fallout from 4133adf06a0ff473e6234f8ab3eb88c47589e627
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774937

 src/documents.js |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 96c14ce..63fa062 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -386,8 +386,6 @@ const DocCommon = new Lang.Class({
                 }
 
                 let cacheMtime = info.get_attribute_uint64(Gio.FILE_ATTRIBUTE_TIME_MODIFIED);
-                cacheMtime /= 1000000;
-
                 if (this.mtime <= cacheMtime) {
                     callback(true, null);
                     return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]