Postprocessing progress bar fix

(Make it work as [probably] actually intended)
pull/1/head
Ryszard Goń 10 years ago
parent 6a04563578
commit 3144313974

@ -147,7 +147,7 @@
<td align="left" valign="top" rowspan="2">Postprocessing Progress <span id="postprocessing_speed">&nbsp;</span><br/><span id="postprocessing_status">&nbsp;&nbsp;&nbsp;</span></td>
<td align="left" width="40"><span id="postprocessing_remainingTimeMinutes">0</span>:<span id="postprocessing_remainingTimeSeconds">0</span></td>
<td align="left" width="260px" colspan="3">
<span id="postprocessing_bar"><progress id="postprocessingBar" max="30000" value="0" style="width:94%;"/></span>
<span id="postprocessing_bar"><progress id="postprocessingBar" max="100" value="0" style="width:94%;"/></span>
</td>
</tr>
<tr class="TableCellLight">

@ -112,11 +112,10 @@ function handleStatus(){
document.getElementById("postprocessing_webgraph").firstChild.nodeValue=getValue(getFirstChild(postprocessing, "webgraphRemainingCount"));
document.getElementById("postprocessing_remainingTimeMinutes").firstChild.nodeValue=getValue(getFirstChild(postprocessing, "remainingTimeMinutes"));
document.getElementById("postprocessing_remainingTimeSeconds").firstChild.nodeValue=getValue(getFirstChild(postprocessing, "remainingTimeSeconds"));
postprocessingElapsedTime=getValue(getFirstChild(postprocessing, "postprocessingElapsedTime"));
postprocessingRemainingTime=getValue(getFirstChild(postprocessing, "postprocessingRemainingTime"));
p = 100 * postprocessingElapsedTime / (postprocessingElapsedTime + postprocessingRemainingTime);
bar="<progress id='postprocessingBar' max='" + p + "' value='100' style='width:94%;'/>";
document.getElementById("postprocessing_bar").firstChild.nodeValue=bar;
postprocessingElapsedTime=parseInt(getValue(getFirstChild(postprocessing, "ElapsedTime")));
postprocessingRemainingTime=parseInt(getValue(getFirstChild(postprocessing, "RemainingTime")));
p = 100 * postprocessingElapsedTime / (postprocessingElapsedTime + postprocessingRemainingTime) || 0;
document.getElementById("postprocessing_bar").firstChild.setAttribute("value", p);
//document.getElementById("postprocessing_speed").firstChild.nodeValue=getValue(getFirstChild(postprocessing, "speed"));
load=getFirstChild(statusTag, "load");

Loading…
Cancel
Save