mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Bug 545707 - Software update reports transfer speed in bytes per second. r=dolske
This commit is contained in:
parent
77c25513a8
commit
4f26945e71
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user