Bug 326462 Time Elapsed column shows NaN:NaN r=biesi sr=jag

This commit is contained in:
neil%parkwaycc.co.uk 2006-07-18 09:50:43 +00:00
parent 78c92dda72
commit 8f0adbb67e

View File

@ -97,7 +97,7 @@ nsDownloadProgressListener.prototype = {
if (this.doc.getElementById("TimeElapsed").getAttribute("hidden") != "true") {
elapsedCol = elt.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling;
// Update elapsed time display.
elapsedCol.setAttribute("label", formatSeconds( this.elapsed / 1000, this.doc ));
elapsedCol.setAttribute("label", formatSeconds( now / 1000 - aDownload.startTime / 1000000, this.doc ));
}
// Calculate percentage.
var percent;