aMule Forum
English => en_Bugs => Topic started by: paulus on January 09, 2006, 07:47:25 PM
-
Dear All
With version 2.1.0, the speed indicated in the panel of transfers does not markedly agree with the one indicated at the bottom bar as download speed. Why does it happen?
Thanks in advance,
Paul
-
Hi!
I just bring this topic back because:
1. There was no reply (so I cannot find workaround/cause of this)
2. Is really old (topic started about 16 months ago)
3. Despite 2. it's still happening. I'm attaching a screenshot:
(http://pwp.etb.net.co/gpulido/speed.png)
Why does this happen? I've always noticed this, either on linux or solaris (attached screen is from solaris 11 beta) and the error is not constant (It's not always +/- a fixed amount of kB/s). At first I thought the difference was the protocol overhead that was being summed in one place but not in the other, but the difference in this screenshot is so big, I think that's not the case. (It's 63kB/s vs 44.9kB/s reported, 18.1kB/s in difference).
Thanks!
-
I have the same issue.
I just chose to ignore it.
-
The values are updated on different moments.
-
And I guess there is no chance to get them synchronized? ;)
Regards.
-
Unless you synchronize the two timers, no.
(The list is being updated by the core_timer [amule-gui.cpp] and the gui is updated by the gui_timer [amuleDlg.cpp] which both run in separated threads. Using the same timer for both would be bad, as it might cause gui freezes and up/download drops.)
-
I was thinking of using the same thread to update both data on the GUI. What I mean is this: there should be a thread (I guess) that polls the core for transfer speeds, then updates the GUI. Maybe it could update both places at the same time? I don't know if it's possible (or it would require a lot of effort to do it) but it looks pretty weird that both values have such big difference. Or just making the values in statusbar the sum of the values in the list (both uploads and downloads)?
Regards.
-
Once and for all:
The speed listed in the download list is a calculated value, that approximates (better or worse) the _50_-seconds average speed.
OTOH, the speed displayed in the status bar and in the title is the *precise* _30_-seconds average speed.
So, to summarize, why they're different:
1) They use different time interval.
2) One is a calculated approximate, the other is precise measurement.
Any questions? Check the code :)