aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Statistics in amulegui  (Read 3200 times)

pcmaster

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 79
Statistics in amulegui
« on: June 29, 2008, 10:16:41 AM »

Statistics in amulegui.

Please, don't say that this make high-bandwith use. If statistics are updated one time each second, isn't necessary to transfer all graphics each time.

Open the amule windows and see the statistics tab. If amulegui window is 1024 pixel width, each graphic is 445 pixel width. As this, the total statistics (the page it has 3 graphics) are 445x3=1335 pixels. This is: graphics shows 1335 values.

The statistics my be calculated by amuled, not amulegui. When amulegui starts, it may ask amuled for the statistics values. It can obtain 1335 bytes of info (one byte for value may be suficient, it can obtain more or less bytes according to amulegui windows size) and then shows the values. This makes initial data transfer of 1335 bytes.

Then if gaphics can be updated, for example, as a one new value each second, amulegui can scroll horizontaly fron right to left the graphics values and ask to amuled for athe new data: only 3 bytes of info, one for each graphic, in order to add new data al the right.

The numerical statistics at the right: it can be transmited once with the initial connection, adding the data to the initial 1335 bytes, and then, each second, send only the changes, adding the info to the 3 byte connection.

This is not a very high bandwith use.
Logged
pcmaster

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Statistics in amulegui
« Reply #1 on: June 29, 2008, 10:37:27 AM »

Please do not post into unrelated threads, open a new one instead.
Logged
concordia cum veritate

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Statistics in amulegui
« Reply #2 on: June 29, 2008, 12:33:08 PM »

I think you're missing the point that the size of the graphics is client-dependant.
Logged

pcmaster

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 79
Re: Statistics in amulegui
« Reply #3 on: July 01, 2008, 08:54:50 PM »

Hello, Kry,

Yes, the size of the graphics is client-dependant. Also a big windos shows more statistics data than a litle window.

But no problem. The client can ask amuled for the ammount of data it needs (it can transmit a "i want a 30 second of statistics data") and amuled transmit only the data amulegui has asked for.

The transmision is statistics-data-only, is amulegui, not amuled, the program that can convert it to graphics.

In otehr words: amuled can maintain always the statistics data, and amulegui ask for the needed data when is needed.
Logged
pcmaster

lfroen

  • Guest
Re: Statistics in amulegui
« Reply #4 on: July 02, 2008, 08:33:14 AM »

Quote
Please, don't say that this make high-bandwith use.
That's depends on implementation. Now, how match is "high"? My "broadband" have upstream of 20KBps. Any application requiring more than 5Kbps considered "high bandwidth". Not everyone live in Japan.

Quote
If statistics are updated one time each second, isn't necessary to transfer all graphics each time.
There's actually 2 statements here: 1) update can be done each second sharp 2) only part of data is needed. You see, the #1 is false, meaning that you can't guarantee that each update will come exactly 1sec after previous one. That's depends on network conditions and load on daemon. This means, that while #2 is true, actual %% of data may vary.

Quote
If amulegui window is 1024 pixel width, each graphic is 445 pixel width. As this, the total statistics (the page it has 3 graphics) are 445x3=1335 pixels. This is: graphics shows 1335 values.
This calculation is wrong all over. Graph is not straight horizontal line, you know (if it was like this, only 2 values were needed). As a result, all later calculations wrong as well and not worth discussion.

Quote
But no problem. The client can ask amuled for the amount of data it needs(it can transmit a "i want a 30 second of statistics data")
Yes it can, but it's something that must be implemented this way.

Logged