If I invoke the tool with an interval of 10 and a count of 2, it will:
- show the summary
- sleep 10s
- show the stats for the last 10s
- sleep 10s
- exit
Signed-off-by: David Lecorfe <dlecorfec@gmail.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
while count != 0:
print_iostat_summary(old_mountstats, mountstats, devices, sample_time, options)
old_mountstats = mountstats
- time.sleep(interval)
+ if count != 1:
+ time.sleep(interval)
sample_time = interval
mountstats = parse_stats_file('/proc/self/mountstats')
# automount mountpoints add and drop, if automount is involved