Ignore entries with 0 reads (probably not disks) unless explicitly instructed
This commit is contained in:
parent
f73e3374d2
commit
4b5dae0905
|
@ -7,6 +7,8 @@ def diskio(disks=[]):
|
||||||
for disk,stats in diskinfo.items():
|
for disk,stats in diskinfo.items():
|
||||||
if disks and disk not in disks:
|
if disks and disk not in disks:
|
||||||
continue
|
continue
|
||||||
|
if stats.read_count == 0 and disk not in disks:
|
||||||
|
continue
|
||||||
stats = {
|
stats = {
|
||||||
"disk": disk,
|
"disk": disk,
|
||||||
"reads_ps": round(stats.read_count/uptime, 2),
|
"reads_ps": round(stats.read_count/uptime, 2),
|
||||||
|
|
Loading…
Reference in New Issue