Closed Bug 284487 Opened 19 years ago Closed 19 years ago

Calculation of filesize is wrong (1000/1024)

Categories

(Toolkit :: Downloads API, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 260741

People

(Reporter: Marsti, Assigned: bugs)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.6) Gecko/20050223 Firefox/1.0.1

The shown filesize is calculated with the factor 1000 and not 1024. So the
file-size of a file which has really around 679 MB (around 700.000.000 byte) is
shown as "695 MB" (695 MB * 1000 / 1024 -> around 679 MB (real file-size)).

Reproducible: Always

Steps to Reproduce:
1. Set up the download manager to be shown when downloading file
2. Start downloading a file which has for example 679 "real"-MB
3. Look at the file-size shown in the download manager window (-> 695 MB)

Actual Results:  
The shown file-size is 695 MB; but on the server (ftp) and after downloading it
has only 679 "real"-MB

Expected Results:  
The software should show the right file-size; using factor 1024, to show the
file as "679 MB" and not as "695 MB".

The download manager tweak extension is installed (don't know if it's a bug of
FireFox or the extension)
Should be fixed in Firefox 1.1

*** This bug has been marked as a duplicate of 260741 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.