PDA

View Full Version : CPU Meter Screenlet vista'ish look


whise
August 18th, 2007, 02:56 AM
Shows information about your system

by Helder Fraga aka Whise based on Hendrik Kaju's Systemstatus Screenlet

http://img245.imageshack.us/img245/408/capturaecrajw5.th.png (http://img245.imageshack.us/my.php?image=capturaecrajw5.png)

Instalation
Put it in your /usr/local/share/screenlets and run it from there

http://www.mediafire.com/?7l7gmsn2gst

updated to use bigger themes and to give proper cpu usage

rgdg
August 18th, 2007, 04:56 AM
I like it a lot! Great work, but is there any chance of getting higher resolution pngs or make svgs so that we can scale it up. When I make it bigger >=200% it gets really grainy.

whise
August 18th, 2007, 05:01 AM
shure , will do in the next version

plun
August 18th, 2007, 10:01 AM
Thanks whise...:D

EDIT

The CPU meter seems to be out of order... full gas all the time..:rolleyes:

plun@dunder:~$ python -u /usr/local/share/screenlets/CPU_Meter/CPU_MeterScreenlet.py
CachingBackend: Loading instances from cache
CachingBackend: Loading <CPU_Meter1>
Loading instances in: /home/plun/.config/Screenlets/CPU_Meter/default/
File: CPU_Meter1.ini
Creating new instance:
UPDATING SHAPE
63
134.0
-5.049
lo = 99
45.8951533136
UPDATING SHAPE
Set options in CPU_MeterScreenlet
63
134.0
-5.049
lo = 99
45.9940652819
UPDATING SHAPE
Restored instances from session 'default' ...
CachingBackend: Saving <#CPU_Meter1> :) ...
OK
63
126.0
-5.049
lo = 99
45.9940652819
Button press
63
118.666666667
-5.049
lo = 99
46.0861056751
63
131.666666667
-5.049
lo = 99
46.587537092
63
123.333333333
-5.049


EDIT/EDIT
Works after a while... minutes...

plun
August 20th, 2007, 05:53 PM
It must be something wrong with the update interval..... set it to 1 and
nothing happens...

whise
August 20th, 2007, 09:32 PM
dont set it to one...2 is the minimun

plun
August 20th, 2007, 09:59 PM
Well... I checked terminal output and sees what happens.

CPU % value starts at 121% and slowly goes down...
Seems to be a "filter"...

Running Intel Pentium 2.4 Ghz.

-5.049
lo = 99
52.8189910979
64
121.666666667
-5.049
lo = 99
52.8189910979
64
118.333333333
-5.049
lo = 99
52.8189910979
64
118.333333333
-5.049
lo = 99
52.8189910979
64
115.333333333
-5.049
lo = 99
52.8189910979
64
115.333333333
-5.049
lo = 99
52.8189910979
64
115.333333333
-5.049
lo = 99
52.8189910979
64
112.666666667
-5.049
lo = 99
52.8189910979
64
112.666666667
-5.049
lo = 99
52.8189910979
64
110.333333333
-5.049
lo = 99
52.8189910979
64
110.333333333
-5.049
lo = 99
52.8189910979
64
110.333333333
-5.049
lo = 99
52.8189910979
64
107.666666667
-5.049
lo = 99
52.8189910979
64
107.666666667
-5.049
lo = 99
52.8189910979
64
105.0
-5.049
lo = 99
52.8189910979
64
105.0
-5.049
lo = 99
52.8189910979
64
105.0
-5.049
lo = 99
52.8189910979
64
102.666666667
-5.049
lo = 99
52.8189910979
64
102.666666667
-5.049
lo = 99
52.8189910979
64
100.666666667
-5.049
lo = 99
52.8189910979
64
100.666666667
-5.049
lo = 99
52.8189910979
64
100.666666667
-5.049
lo = 99
52.8189910979
64
98.3333333333
-5.015
lo = 98.3333333333
52.8189910979
64
98.3333333333
-5.015
lo = 98.3333333333
52.8189910979
64
96.3333333333
-4.913
lo = 96.3333333333
52.8189910979
64
96.3333333333
-4.913
lo = 96.3333333333
52.8189910979
64
96.3333333333
-4.913
lo = 96.3333333333
52.8189910979

whise
August 20th, 2007, 10:39 PM
let me see if i can explain my self , the way it works to get the cpu value is , it check for ( cpu at a time ) - (cpu ata a time + 1 sec) , the 1 second value is not the update time in the screenlet is a reference time to calculate the cpu % used , so if you put the update interval to 1 second it goes like ( cpu at a time ) - (cpu ata a time + 1 sec) every 1 second , that is not possible so it will give errors and false cpu usage

plun
August 20th, 2007, 10:42 PM
Well, the intervall is set to 2 sec.....

Something IS wrong....;)

y=91
x=1137
update_interval=2
theme_name=default
is_widget=True

whise
August 20th, 2007, 10:43 PM
well i think you are using my previus version , are you shure its v '.4 your using? cause i fixed it in 04

version 4 gives an out put like this

CPU load = 4.0
Mem load = 60.6330365974

plun
August 20th, 2007, 10:49 PM
well i think you are using my previus version , are you shure its v '.4 your using? cause i fixed it in 04

version 4 gives an out put like this

CPU load = 4.0
Mem load = 60.6330365974

Solved....:cool: (wrong version)

Loading instances in: /home/plun/.config/Screenlets/CPU_Meter/default/
File: CPU_Meter1.ini
Creating new instance:
UPDATING SHAPE
100.0 10.0
10.0
CPU load = 10.0
Mem load = 57.4678536103
UPDATING SHAPE
Set options in CPU_MeterScreenlet
104.0 23.0

"Singing in the rain".... Thanks...:D

plun
August 27th, 2007, 05:29 PM
A new version....

http://www.gnome-look.org/content/show.php/CPU+Meter+Screenlet+vista%27ish+look?content=64599

Thanks whise