scottchiefbaker / dool

Python3 compatible fork of dstat
GNU General Public License v3.0
332 stars 64 forks source link

potential minor bug? #26

Closed min-xu-ai closed 1 year ago

min-xu-ai commented 2 years ago

see this

SUMMARY

I occationally see this.

  File "/usr/lib/python-exec/python3.9/dstat", line 2830, in <module>
    main()
  File "/usr/lib/python-exec/python3.9/dstat", line 2689, in main
    scheduler.run()
  File "/usr/lib/python3.9/sched.py", line 151, in run
    action(*argument, **kwargs)
  File "/usr/lib/python-exec/python3.9/dstat", line 2787, in perform
    line = line + o.show() + o.showend(totlist, vislist)
  File "/usr/lib/python-exec/python3.9/dstat", line 521, in show
    line = line + cprintlist(self.val[name], ctype, self.width, scale)
  File "/usr/lib/python-exec/python3.9/dstat", line 2089, in cprintlist
    ret = ret + sep + cprint(var, ctype, width, scale)
  File "/usr/lib/python-exec/python3.9/dstat", line 2139, in cprint
    ret, c = dchg(var, width, base)
  File "/usr/lib/python-exec/python3.9/dstat", line 2039, in dchg
    ret = str(int(round(var)))
OverflowError: cannot convert float infinity to integer
ISSUE TYPE
DSTAT VERSION
<!--- Paste verbatim output from “dstat --version” here between tripple quotes -->
OS / ENVIRONMENT
STEPS TO REPRODUCE
<!--- Paste example use or output here between quotes -->
EXPECTED RESULTS
ACTUAL RESULTS
<!--- Paste verbatim command output between quotes -->
Korkman commented 1 year ago

Duplicate of #3

scottchiefbaker commented 1 year ago

Dupe of #3