GNOME Bugzilla – Bug 127287
Bad guess for remaining time
Last modified: 2011-03-07 20:45:33 UTC
Fwd'd from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=218480 From: "Marcelo E. Magallon" <mmagallo@debian.org> Hi, I paused a download because it was hogging the downstream connection. After a while, I resumed it again... Epiphany seems to remember only the time when it started the download, which means it guesses the remaining time as: t = (S0 - S)/r where r is download rate, and S0 the total size, S whatever it has downloaded thus far. And r seems to be: r = S/T where T is the enlapsed time. This means that when I pause the download, this rate doesn't have anything to do with the current download rate but with some sick average with no physical significance at all. Using the current download speed is also bad, because that can change wildly. Using the moving average over the last N time steps produces the desired result. r = S'/T' where S' is the ammount of information downloaded in the last N timesteps and T' is the corresponding time. Now, if instead of reinventing the weel, Epiphany were to use something like GTM we wouldn't be having this discussion. Sadly the development of GTM seems to have stalled, it hasn't been ported to GNOME 2 which means it's not cool anymore... there's something newer, downman, but it doesn't seem to be packaged for Debian yet.
One way to deal with this case would be to play a trick on the download: remember the time at which the pause button was clicked, and then when the resume button is clicked advance the "time at which the download was started" variable by how long the download was paused for. I can't see how to do this neatly, since I don't quite understand the code (the implementation is somewhere in mozilla, or I'm looking in the wrong place).
Mass reassigning of Epiphany bugs to epiphany-maint@b.g.o
Edd, is this problem still reproducable in the latest Epiphany version?
ff uses an average of the last 10 data points, see https://bugzilla.mozilla.org/show_bug.cgi?id=245725 .
Reinout: yes, this is still here in 2.14.
Updating version fields.
Can't see it anymore in the new downloads UI.