Closed Bug 289261 Opened 20 years ago Closed 20 years ago

Download manager reports badly download rate

Categories

(Toolkit :: Downloads API, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 228968

People

(Reporter: enrique, Assigned: bugs)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

When yo try to download a file which is bigge than 2 GB download manager begin
to report not properly file size and shows a negative download rate (-234.-4
KB/sec). Also the file size begin to be reported as the remaining size yet not
downloaded (the opposite to the usual way) but i don't know if it's either a
feature or a bug
FInally when the download ends the file size is incorrectly reported (using
negative values which absolut value don't correspond with the actual value)

Reproducible: Always

Steps to Reproduce:
1.Set a file bigger than 2GB
2.Begin to download
3

Actual Results:  
In donwload manager tan:

Status: -1234567 Kb .. -234.-5 KB/Sec

Expected Results:  
Acting as the usual way showing positive values and the file size already got

*** This bug has been marked as a duplicate of 228968 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
I think that i have the solutions Perhaps they are using a signed integer to
store the file size (32 bits) so when the file size is bigger than 2GB (2^31)
there is an overflow so the number representation is not correct.
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.