From f834703baead5d7284e6c3ba2df9d1ade15ff3f9 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 2 Oct 2022 16:10:21 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=20periodicCheckInpx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/WebWorker.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/core/WebWorker.js b/server/core/WebWorker.js index 06206c9..b285b7c 100644 --- a/server/core/WebWorker.js +++ b/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); } } }