diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index eb84bdf..09b7008 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -195,9 +195,14 @@ global.online='ob'; watcher .on('add', function(path) { console.log('File', path, 'has been added'); - var pathfile = pathmodule.basename(path); + var pathfileval = pathmodule.basename(path); + var arrfile = str.split("-").map(function (pathfileval) { + return Number(val) + 1; + }); + var pathfile = arrfile[0]; console.log('Filepath ', pathfile, ' check'); // /var/lab/playground-serverlogs/ondemand_playgroundnodejs_masterJPMqt1Jr-RgpMZFwJ-log + // ondemand_playgroundnodejs_masterPQvbrWga-AQxgfnSJ-output (async() => { var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto var resdata = await getpipelines(token,pathfile)