"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/dstat_fan.py" between
dstat-0.7.3.tar.gz and dstat-0.7.4.tar.gz

About: dstat is a versatile resource statistic tool and a replacement for vmstat, iostat and ifstat (using Python).

dstat_fan.py  (dstat-0.7.3):dstat_fan.py  (dstat-0.7.4)
skipping to change at line 24 skipping to change at line 24
def vars(self): def vars(self):
ret = None ret = None
for l in self.splitlines(): for l in self.splitlines():
if l[0] == 'speed:': if l[0] == 'speed:':
ret = ('speed',) ret = ('speed',)
return ret return ret
def check(self): def check(self):
if not os.path.exists('/proc/acpi/ibm/fan'): if not os.path.exists('/proc/acpi/ibm/fan'):
raise Exception, 'Needs kernel IBM-ACPI support' raise Exception('Needs kernel IBM-ACPI support')
def extract(self): def extract(self):
if os.path.exists('/proc/acpi/ibm/fan'): if os.path.exists('/proc/acpi/ibm/fan'):
for l in self.splitlines(): for l in self.splitlines():
if l[0] == 'speed:': if l[0] == 'speed:':
self.val['speed'] = int(l[1]) self.val['speed'] = int(l[1])
# vim:ts=4:sw=4:et # vim:ts=4:sw=4:et
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)