Skip to content

Instantly share code, notes, and snippets.

@fujitayy
Created April 21, 2020 04:20
Show Gist options
  • Save fujitayy/87cf18c02bb2273c6a940a40f8bb910d to your computer and use it in GitHub Desktop.
Save fujitayy/87cf18c02bb2273c6a940a40f8bb910d to your computer and use it in GitHub Desktop.
dstat OverflowError 記念
Traceback (most recent call last):
File "/usr/bin/dstat", line 2842, in <module>
main()
File "/usr/bin/dstat", line 2687, in main
scheduler.run()
File "/usr/lib/python3.7/sched.py", line 151, in run
action(*argument, **kwargs)
File "/usr/bin/dstat", line 2799, in perform
line = line + o.show() + o.showend(totlist, vislist)
File "/usr/bin/dstat", line 519, in show
line = line + cprintlist(self.val[name], ctype, self.width, scale)
File "/usr/bin/dstat", line 2087, in cprintlist
ret = ret + sep + cprint(var, ctype, width, scale)
File "/usr/bin/dstat", line 2137, in cprint
ret, c = dchg(var, width, base)
File "/usr/bin/dstat", line 2037, in dchg
ret = str(int(round(var)))
OverflowError: cannot convert float infinity to integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment