dstat-real / dstat

Versatile resource statistics tool (the real one, not the Red Hat clone)
GNU General Public License v2.0
1.34k stars 330 forks source link

Dstat crashes when outputting to .csv #22

Closed sdguero closed 10 years ago

sdguero commented 12 years ago

Thanks for the great tool! Thought I should report this since dstat has been so handy the last year or so...

I get the following error when trying to output to .csv: [root@dar_server]# dstat -tv --output dar.out Traceback (most recent call last): File "/usr/bin/dstat", line 2665, in ? main() File "/usr/bin/dstat", line 2526, in main scheduler.run() File "/usr/lib/python2.4/sched.py", line 105, in run void = action(*argument) File "/usr/bin/dstat", line 2624, in perform oline = oline + o.showcsv() + o.showcsvend(totlist, vislist) File "/usr/bin/dstat", line 553, in showcsv line = line + printcsv(self.val[name]) File "/usr/bin/dstat", line 541, in printcsv return '%d' % round(var) TypeError: int argument required

Outputting to console with the same args works fine. Also, an older version of dstat works OK. By older, I mean one copied from about a year ago that I had laying around.

Both scripts say the same version, but they have a different number of lines... VERSION = '0.7.2svn'

This error ONLY occurs on one server (out of 4 running this version) when outputting to .csv and using the most recent version of the dstat script that is up on the github repository (0.7.2.svn ???) .

dagwieers commented 10 years ago

I don't know how to reproduce this. If you can, please reopen.

Sorry.