KawaiiBASIC / classilla

Automatically exported from code.google.com/p/classilla
0 stars 0 forks source link

Crazy numbers in Download Manager #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported on LEM list by two users,

> - Time Left/Elapsed Time when downloading sometimes display apparently
> random nonsense (numbers and dashes). The Status display seems
> accurate enough.

Need to confirm first. Might add some guard code.

Original issue reported on code.google.com by classi...@floodgap.com on 3 Aug 2009 at 12:33

GoogleCodeExporter commented 9 years ago
Confirmed with large downloads such as .isos, etc. Time-Left indeed shows 
hyphens,
probably due to a math overflow. Status does not seem affected.

Original comment by classi...@floodgap.com on 6 Aug 2009 at 3:28

GoogleCodeExporter commented 9 years ago
Typical form looks like ##:#-##, which is interesting, as this probably comes 
from
some sort of modulo code. Some additional guard checks added to
:xpfe:components:download-manager:src:nsDownloadProgressListener.js

Original comment by classi...@floodgap.com on 3 Sep 2009 at 4:08

GoogleCodeExporter commented 9 years ago
and nsProgressDialog.js, which does the actual update, by replacing parseInt 
with
Math.floor. Much better. Also smoothed out speed estimation algorithm while I 
was at it.

Original comment by classi...@floodgap.com on 3 Sep 2009 at 5:08