Explorar o código

Поправки periodicCheckInpx

Book Pauk %!s(int64=2) %!d(string=hai) anos
pai
achega
f834703bae
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      server/core/WebWorker.js

+ 4 - 3
server/core/WebWorker.js

@@ -509,15 +509,16 @@ class WebWorker {
                 const currentInpxHash = (dbConfig.inpxHash ? dbConfig.inpxHash : '');
 
                 if (newInpxHash !== currentInpxHash) {
-                    log('inpx file changed, recreating DB');
+                    log('inpx file: changes found, recreating DB');
                     await this.recreateDb();
+                } else {
+                    log('inpx file: no changes');
                 }
             } catch(e) {
                 log(LM_ERR, `periodicCheckInpx: ${e.message}`);
             }
 
-            //await utils.sleep(inpxCheckInterval*60*1000);
-            await utils.sleep(10000);
+            await utils.sleep(inpxCheckInterval*60*1000);
         }
     }
 }