aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Transfer speed does not agree with download speed  (Read 4255 times)

paulus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 27
Transfer speed does not agree with download speed
« 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
« Last Edit: January 09, 2006, 07:47:53 PM by paulus »
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Transfer speed does not agree with download speed
« Reply #1 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:



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!
Logged

wild_oscar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
Re: Transfer speed does not agree with download speed
« Reply #2 on: June 25, 2007, 04:17:38 PM »

I have the same issue.

I just chose to ignore it.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Transfer speed does not agree with download speed
« Reply #3 on: June 25, 2007, 04:32:23 PM »

The values are updated on different moments.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Transfer speed does not agree with download speed
« Reply #4 on: June 25, 2007, 09:59:47 PM »

And I guess there is no chance to get them synchronized? ;)

Regards.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Transfer speed does not agree with download speed
« Reply #5 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.)
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Transfer speed does not agree with download speed
« Reply #6 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.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Transfer speed does not agree with download speed
« Reply #7 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 :)
Logged
concordia cum veritate