From f19cdc8bc7bd0ade6dd063da56fc213eac44752d Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 23 Nov 2020 00:40:40 +0200 Subject: [PATCH] watcher --- swarmlab-app/src/run/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 09b7008..2539972 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -196,7 +196,7 @@ global.online='ob'; .on('add', function(path) { console.log('File', path, 'has been added'); var pathfileval = pathmodule.basename(path); - var arrfile = str.split("-").map(function (pathfileval) { + var arrfile = pathfileval.split("-").map(function (val) { return Number(val) + 1; }); var pathfile = arrfile[0];