diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index a51ab18..a7f7eda 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -197,7 +197,7 @@ global.online='ob'; console.log('File', path, 'has been added'); var pathfileval = pathmodule.basename(path); console.log('Filepath1 ', pathfileval, ' check'); - var arrfile = str.toString().split("-"); + var arrfile = pathfileval.toString().split("-"); var pathfile = arrfile[0]; console.log('Filepath ', pathfile, ' check'); // /var/lab/playground-serverlogs/ondemand_playgroundnodejs_masterJPMqt1Jr-RgpMZFwJ-log