"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/dstat_memcache_hits.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_memcache_hits.py  (dstat-0.7.3):dstat_memcache_hits.py  (dstat-0.7.4)
skipping to change at line 23 skipping to change at line 23
self.type = 'd' self.type = 'd'
self.width = 6 self.width = 6
self.scale = 50 self.scale = 50
def check(self): def check(self):
try: try:
global memcache global memcache
import memcache import memcache
self.mc = memcache.Client([''], debug=0) self.mc = memcache.Client([''], debug=0)
except: except:
raise Exception, 'Plugin needs the memcache module' raise Exception('Plugin needs the memcache module')
def extract(self): def extract(self):
stats = self.mc.get_stats() stats = self.mc.get_stats()
for key in self.vars: for key in self.vars:
self.val[key] = long(stats[0][1][key]) self.val[key] = int(stats[0][1][key])
 End of changes. 2 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)