Skip to content
Browse files

Fix the top-plugins with CSV output

This fixes #15 and #16
  • Loading branch information...
1 parent cd505b3 commit e8ea398e3e3a0e02e1d39f3902f69d104d54dc24 @dagwieers committed Nov 26, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 plugins/dstat_top_bio_adv.py
  2. +1 −1 plugins/dstat_top_cpu_adv.py
  3. +1 −1 plugins/dstat_top_io_adv.py
View
2 plugins/dstat_top_bio_adv.py
@@ -72,4 +72,4 @@ def extract(self):
self.output = '%-*s%s%-5s%s%s%s%s%%' % (self.width-14-len(pid), self.val['name'][0:self.width-14-len(pid)], ansi['darkblue'], self.val['pid'], cprint(self.val['read_usage'], 'd', 5, 1024), cprint(self.val['write_usage'], 'd', 5, 1024), cprint(self.val['cpu_usage'], 'f', 3, 34), ansi['darkgray'])
def showcsv(self):
- return self.output + 'Top: %s\t%s\t%s\t%s' % (self.val['name'][0:self.width-20], self.val['read_usage'], self.val['write_usage'], self.val['cpu_usage'])
+ return 'Top: %s\t%s\t%s\t%s' % (self.val['name'][0:self.width-20], self.val['read_usage'], self.val['write_usage'], self.val['cpu_usage'])
View
2 plugins/dstat_top_cpu_adv.py
@@ -71,4 +71,4 @@ def extract(self):
def showcsv(self):
- return self.output + 'Top: %s\t%s\t%s\t%s' % (self.val['name'][0:self.width-20], self.val['cpu_usage'], self.val['read_usage'], self.val['write_usage'])
+ return 'Top: %s\t%s\t%s\t%s' % (self.val['name'][0:self.width-20], self.val['cpu_usage'], self.val['read_usage'], self.val['write_usage'])
View
2 plugins/dstat_top_io_adv.py
@@ -72,4 +72,4 @@ def extract(self):
self.output = '%-*s%s%-5s%s%s%s%s%%' % (self.width-14-len(pid), self.val['name'][0:self.width-14-len(pid)], ansi['darkblue'], self.val['pid'], cprint(self.val['read_usage'], 'd', 5, 1024), cprint(self.val['write_usage'], 'd', 5, 1024), cprint(self.val['cpu_usage'], 'f', 3, 34), ansi['darkgray'])
def showcsv(self):
- return self.val['i/o process'] + 'Top: %s\t%s\t%s\t%s' % (self.val['name'][0:self.width-20], self.val['read_usage'], self.val['write_usage'], self.val['cpu_usage'])
+ return 'Top: %s\t%s\t%s\t%s' % (self.val['name'][0:self.width-20], self.val['read_usage'], self.val['write_usage'], self.val['cpu_usage'])

0 comments on commit e8ea398

Please sign in to comment.
Something went wrong with that request. Please try again.