Commit b16c79c4 authored by Andrew Cohen's avatar Andrew Cohen

timeout on experiment polling, path management / root removal on cached inprocessQ

parent b1e391a8
......@@ -193,7 +193,7 @@ function updateProcess()
editSendServerCommand(cmd,function(that){
Q=JSON.parse(that.responseText);
buildProcessTables(Q);
setTimeout(updateProcess, 1000);
setTimeout(updateProcess, 5000);
},updateProcess,[],true);
}
else {
......
......@@ -189,11 +189,13 @@ app.post('/killProcessAll/',checkLWT, function(req,res) {
app.get('/processQ', function(req,res) {
const process=require('./leverjs/process.js');
const path=require('path');
var rootStd=path.resolve(ROOT);
var rootStd=path.resolve(ROOT); // '/' not '\\'
var Q=process.getQ(function(Q) {
// remove root from each
for (var i=0;i<Q.inProcessQ.length;i++) {
Q.inProcessQ[i].leverFile=Q.inProcessQ[i].leverFile.substring(ROOT.length+1);
var lf=path.resolve(Q.inProcessQ[i].leverFile);
if (lf.indexOf(rootStd)>=0)
Q.inProcessQ[i].leverFile=Q.inProcessQ[i].leverFile.substring(ROOT.length+1);
}
for (var i=0;i<Q.toProcessQ.length;i++) {
var lf=path.resolve(Q.toProcessQ[i].leverFile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment