162177 patch by alge@samsen.com r=jag sr=dmose a=asa error in the downloading windows

This commit is contained in:
cbiesinger%web.de 2003-05-14 21:44:21 +00:00
Родитель d329c0b4f0
Коммит c808f6a602
1 изменённых файлов: 1 добавлений и 3 удалений

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

@ -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.