aMule Forum

English => en_Bugs => Topic started by: paulus on January 09, 2006, 07:47:25 PM

Title: Transfer speed does not agree with download speed
Post 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
Title: Re: Transfer speed does not agree with download speed
Post by: skolnick on May 27, 2007, 12:47:13 AM
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!
Title: Re: Transfer speed does not agree with download speed
Post by: wild_oscar on June 25, 2007, 04:17:38 PM
I have the same issue.

I just chose to ignore it.
Title: Re: Transfer speed does not agree with download speed
Post by: Kry on June 25, 2007, 04:32:23 PM
The values are updated on different moments.
Title: Re: Transfer speed does not agree with download speed
Post by: skolnick on June 25, 2007, 09:59:47 PM
And I guess there is no chance to get them synchronized? ;)

Regards.
Title: Re: Transfer speed does not agree with download speed
Post by: wuischke on June 26, 2007, 07:36:00 AM
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.)
Title: Re: Transfer speed does not agree with download speed
Post by: skolnick on June 28, 2007, 12:34:02 AM
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.
Title: Re: Transfer speed does not agree with download speed
Post by: GonoszTopi on February 17, 2008, 09:04:02 PM
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 :)