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