Эх сурвалжийг харах

Поправки periodicCheckInpx

Book Pauk 2 жил өмнө
parent
commit
f834703bae

+ 4 - 3
server/core/WebWorker.js

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