← Back to team overview

screenlets-dev team mailing list archive

[Bug 694857] Re: [Sensors] sensors.py flaws

 

my screenlets version is 0.1.3~bzr569+20101228164011~lucid1 so it should
be corrected but...

if i ask the cpu usage:

self.__new_cpu = sensors.cpu_get_load(0)
self.__cpu = int(self.__new_cpu-self.__old_cpu)
print self.__cpu

the range of value is '0' to '200' (%), so the widget show the sum of
cpu cores (many screenlets are affected).

the memory finally now works in mb, would be nice to auto show the size
in gb for large values like conky but no matter.

if i ask the hd temp:

print sensors.sensors_get_sensor_value('hddtemp sensor /dev/sda')

it return '/dev/sda: 38 C' once and after 'none, none, none....' so the
widget show none, and don't understand why if i ask the gpu temp, it
return a numeric value, if i ask the hdd or cpu temp, it return an
useless string instead a number.

-- 
You received this bug notification because you are a member of
Screenlets Dev Team, which is subscribed to Screenlets.
https://bugs.launchpad.net/bugs/694857

Title:
  [Sensors] sensors.py flaws



References