Преглед на файлове

use seconds (as stated in config)
timestamps in JS are ms. multiplied config value with 1000 so it's converted to ms

jomo преди 10 години
родител
ревизия
b95d011933
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      modules/helpers.js

+ 1 - 1
modules/helpers.js

@@ -83,7 +83,7 @@ function get_image_hash(uuid, callback) {
     if (err) {
       callback(err, -1, null);
     } else {
-      if (details && details.time + config.local_cache_time >= new Date().getTime()) {
+      if (details && details.time + config.local_cache_time * 1000 >= new Date().getTime()) {
         // uuid known + recently updated
         console.log(uuid + " uuid known & recently updated");
         callback(null, (details.hash ? 1 : 0), details.hash);