Bug 545707 - Software update reports transfer speed in bytes per second. r=dolske

This commit is contained in:
Robert Strong 2010-03-17 16:12:41 -07:00
Родитель 77c25513a8
Коммит 4f26945e71
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1194,7 +1194,7 @@ var gDownloadingPage = {
* Member variables for updating download status
*/
_lastSec: Infinity,
_startTime: Date.now(),
_startTime: null,
_pausedStatus: "",
/**
@ -1227,6 +1227,8 @@ var gDownloadingPage = {
return;
}
this._startTime = Date.now();
try {
// Say that this was a foreground download, not a background download,
// since the user cared enough to look in on this process.