From 88ff45449956028253ca71a404b59076960b8829 Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 23 Nov 2020 00:52:49 +0200 Subject: [PATCH] watcher --- swarmlab-app/src/run/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 120cf71..a51ab18 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -197,9 +197,7 @@ global.online='ob'; console.log('File', path, 'has been added'); var pathfileval = pathmodule.basename(path); console.log('Filepath1 ', pathfileval, ' check'); - var arrfile = pathfileval.split("-").map(function (val) { - return Number(val) + 1; - }); + var arrfile = str.toString().split("-"); var pathfile = arrfile[0]; console.log('Filepath ', pathfile, ' check'); // /var/lab/playground-serverlogs/ondemand_playgroundnodejs_masterJPMqt1Jr-RgpMZFwJ-log