aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: download speed diffent from menu meters speed  (Read 6765 times)

2_brain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
download speed diffent from menu meters speed
« on: July 07, 2005, 06:56:30 PM »

Hi.
i present you a little problem.
I use on Panther Menu Meters to show in menu bar network statistic.
I don't understand why in amule i see a download speed of 110 kb (for example...when i'm lucky) and instead in menu meters i view a different, lower speed....
???

and because i'm here i ask even this:

someone know some method to show directly the speed of Amule in some way? I use geektool on mac to show command on the desktop... there some way to extract statistic from amule or from terminal with some commands?

i see an application call amulecmd that could be usefull to show statistic on terminal ... but where i can download it? i is inside of amule? i must compile it (i'm using the last binary now)....


thanx for the help and thanx for the work to developers.... !!!
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
RE: download speed diffent from menu meters speed
« Reply #1 on: July 08, 2005, 05:50:50 AM »

Quote
Originally posted by 2_brain
I don't understand why in amule i see a download speed of 110 kb (for example...when i'm lucky) and instead in menu meters i view a different, lower speed....
I'm not sure.  Any measurement of download rate is, by necessity, an average computed over a time span.  It's possible that the two programs are using different time spans and thus calculating different averages.

Quote
someone know some method to show directly the speed of Amule in some way? I use geektool on mac to show command on the desktop... there some way to extract statistic from amule or from terminal with some commands?
Yes, amulecmd will do that.  You might also consider the Online Signature feature of aMule.  You can either parse the ~/.aMule/amulesig.dat file yourself or use the cas (C aMule Statistics) tool.

Quote
i see an application call amulecmd that could be usefull to show statistic on terminal ... but where i can download it? i is inside of amule? i must compile it (i'm using the last binary now)....
We don't provide a pre-compiled amulecmd with the Mac binary, currently.  You'll have to compile it for yourself.  Same for cas.

Quote
thanx for the help and thanx for the work to developers.... !!!
You're welcome.  :)
Logged

2_brain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: download speed diffent from menu meters speed
« Reply #2 on: July 09, 2005, 10:35:20 PM »

Well i post again only to show you a little solution to my problem that i made my own.
I use the amulesig.dat file to show amule down and up speed on desktop through   geektool and a little bash script. it refresh every 3 sec

here the result:



and here you can see a all desktop pic that show how i put the indicator in a place that let me to see it always even with amule hide... and when i'm doing something else. (right up corner)

well i know it's a little stupid thing but i'm proud of it !!!  8)

 ;)

if someone want the bash script tell me.

hi
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: download speed diffent from menu meters speed
« Reply #3 on: July 09, 2005, 11:48:00 PM »

hey, it's nice. Want it to be included on our offical releases?
Logged

2_brain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: download speed diffent from menu meters speed
« Reply #4 on: July 10, 2005, 01:34:56 AM »

thank :)
well the tip depends on geektool...
in any way the bash script is here
i'm not a great bash scripter.  make it today reading some unix man's pages.
it can be sure better.

hi
Logged

MetalSnake

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: download speed diffent from menu meters speed
« Reply #5 on: July 10, 2005, 12:27:04 PM »

cool thanks 2_brain :)
I moved that GeekTool "Window" in the menubar, this is possible when you select "always on top" :)

Is there a way to show the number of finished downloads too?
Logged

2_brain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: download speed diffent from menu meters speed
« Reply #6 on: July 10, 2005, 02:27:11 PM »

Quote
Is there a way to show the number of finished downloads too?

well... i'm trying to do something... the problem is that in amulesig.dat there's no indication of finished download...
a possible solution could be to show in desktop only if there are new finished downloads or not, with the geektool indicator, but to do so i must scan the download folder... and this bring to problem for the portability of the script:

1)where is the download folder? (i have it in one place...you?)
2)i should compare the folder with a empty version... but this mean that every time there is  a finished download it must be bring away immediatly...

too complicated....


Is impossible to insert in amulesig.dat a row with a 0 or a 1 that show the presence or not of a new finished download?


metalsnake, you are right.... the  menubar position is really nice! :)
Logged

MetalSnake

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: download speed diffent from menu meters speed
« Reply #7 on: July 10, 2005, 05:11:24 PM »

You could do a little app which asks the user for the download folder, and then with that info the app writes the complete script. Or the user could just change the script. Or check the prefs of amule, somewhere in there has to be the info where the download folder is. Then you could save the number of items in that folder and check every minute or so if it changed, if it is lower than before you save the new number, if it is higher you give out how much higher. Still one problem: how does the script know that I saw the finished download?
Easiest would be of course to implement the number of finished downloads in the amule signature. :)
Logged

2_brain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: download speed diffent from menu meters speed
« Reply #8 on: July 10, 2005, 08:20:45 PM »

yes the first problem i easy. as you say i can take the info of the download folder from the amule preference file.
on how show the finished download....the problem is that it can be easy if every time the script tell you that there is a finished download you clean the folder.... the number that you confront with must be always the same (0 for example) in a different way the script tell you that there are finished downloads even if you put away some files in others folder, because it see a difference in the number of items between the two different moment ...
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: download speed diffent from menu meters speed
« Reply #9 on: July 11, 2005, 03:51:11 AM »

Soon amulecmd will be able to show finished downloads too, so you'll just have to rewrite your script to use amulecmd :P

"Soon" = probably before next release
Logged
concordia cum veritate