Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Dstat crashes when outputting to .csv #22

Closed
sdguero opened this issue Mar 28, 2012 · 0 comments
Closed

Dstat crashes when outputting to .csv #22

sdguero opened this issue Mar 28, 2012 · 0 comments
Assignees
Labels

Comments

@sdguero
Copy link

sdguero commented Mar 28, 2012

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 ???) .

@ghost ghost assigned dagwieers Nov 26, 2013
@dagwieers
Copy link
Collaborator

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

Sorry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants