Commit cc56167b authored by Andrew Cohen's avatar Andrew Cohen

deep copy toProcessQ for status

parent 7859aa6b
......@@ -138,7 +138,7 @@ function buildProcessTables(Q)
row.innerHTML='<td>+'+(i+1)+': </td><td class="processRow">'+leverFile+'</td>'+
'<td class="processRow">'+Q.toProcessQ[i].command+'</td>'+
'<td class="processRow">'+Q.toProcessQ[i].params+'</td>';
'<td class="processRow">'+Q.toProcessQ[i].time+'</td>';
}
} // buildProcessTables
......
......@@ -259,7 +259,12 @@ function getQ(fnCallback,hrInterval,bSanitizeFileName)
Q={};
Q.hrtime=process.hrtime();
Q.toProcessQ=toProcessQ;
var copyToProcessQ=[];
for (var i=0;i<toProcessQ.length;i++){
copyToProcessQ[i]={command:toProcessQ[i].command,leverFile:toProcessQ[i].leverFile,ID:toProcessQ[i].ID,
time:toProcessQ[i].time};
}
Q.toProcessQ=copyToProcessQ;
Q.inProcessQ=[];
......
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