Ignore entries with 0 reads (probably not disks) unless explicitly instructed

This commit is contained in:
Dave Pedu 2015-12-09 15:54:04 -08:00
parent f73e3374d2
commit 4b5dae0905
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ def diskio(disks=[]):
for disk,stats in diskinfo.items():
if disks and disk not in disks:
continue
if stats.read_count == 0 and disk not in disks:
continue
stats = {
"disk": disk,
"reads_ps": round(stats.read_count/uptime, 2),