Closed Bug 269784 Opened 20 years ago Closed 20 years ago

Mozilla Firefox rounds off Download Manager file sizes wrongly

Categories

(Toolkit :: Downloads API, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 260741

People

(Reporter: furrypandy, Assigned: bugs)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Take for example, the filesize of Mozilla Firefox 1.0 Gold. The filesize is 4,918,270 bytes. Internet Explorer renders it quite accurately at 4.68MB (actual is 4.6904277801513671875MB), while the Mozilla Suite renders it as 4803kb, which is correct. However, Mozilla Firefox renders it as 4.8MB, which is a large difference from 4.68MB and 4803kb. At first I thought that it was because Firefox rendered them as MB by dividing by 1000 twice, but that would give 4.91MB, which would be even more inaccurate. It seems that Mozilla Firefox divides it by 1024 to get the KB (4803kb), and then incorrectly converting it to MB by dividing it by 1000. It's very inconsistent and should be fixed ASAP to divide the KB to MB by 1024 instead of 1000. Reproducible: Always Steps to Reproduce: 1. Download a file 2. Check the filesize inaccuracy Actual Results: The filesize is rendered incorrectly. Expected Results: The filesize should be rendered properly.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Let's go back to the earlier one, with a useful link to kB/KiB and MB/MiB *** This bug has been marked as a duplicate of 260741 ***
Status: NEW → RESOLVED
Closed: 20 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.