Skip to content

Instantly share code, notes, and snippets.

@psftw
Created March 9, 2021 22:38
Show Gist options
  • Save psftw/157e58226653a87d47f9e29bdd37f957 to your computer and use it in GitHub Desktop.
Save psftw/157e58226653a87d47f9e29bdd37f957 to your computer and use it in GitHub Desktop.
$ dstat
You did not select any stats, using -cdngy by default.
--total-cpu-usage-- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai stl| read writ| recv send| in out | int csw
6 2 91 0 0| 679k 3332k| 0 0 | 62B 841B|6227 24k
6 2 92 0 0| 0 112k|1858B 785B| 0 0 |4803 21k
3 2 95 0 0| 256k 328k| 966B 278B| 0 0 |3943 20kTraceback (most recent call last):
File "/usr/bin/dstat", line 2847, in <module>
main()
File "/usr/bin/dstat", line 2687, in main
scheduler.run()
File "/usr/lib/python3.8/sched.py", line 151, in run
action(*argument, **kwargs)
File "/usr/bin/dstat", line 2804, 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