зеркало из https://github.com/mozilla/pjs.git
162177 patch by alge@samsen.com r=jag sr=dmose a=asa error in the downloading windows
This commit is contained in:
Родитель
d329c0b4f0
Коммит
c808f6a602
|
@ -719,9 +719,7 @@ nsProgressDialog.prototype = {
|
||||||
|
|
||||||
// Convert raw rate (bytes/sec) to Kbytes/sec (to nearest tenth).
|
// Convert raw rate (bytes/sec) to Kbytes/sec (to nearest tenth).
|
||||||
rateToKRate: function( rate ) {
|
rateToKRate: function( rate ) {
|
||||||
var kRate = rate / 1024; // KBytes/sec
|
return ( rate / 1024 ).toFixed(1);
|
||||||
var fraction = parseInt( ( kRate - ( kRate = parseInt( kRate ) ) ) * 10 + 0.5 );
|
|
||||||
return kRate + "." + fraction;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Format number of seconds in hh:mm:ss form.
|
// Format number of seconds in hh:mm:ss form.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче