summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Mayhew <smayhew@redhat.com>2014-10-20 16:41:13 -0400
committerSteve Dickson <steved@redhat.com>2014-12-13 10:40:28 -0500
commit17ca77b621fa94a1b0354e39be203c23243dfba8 (patch)
tree3ff07e922694994a3e5e1d14c6bf08ca7bbc4b81
parent69d6113cfd8d059b09622477226180d02ebd564e (diff)
downloadnfs-utils-17ca77b621fa94a1b0354e39be203c23243dfba8.tar.gz
nfs-utils-17ca77b621fa94a1b0354e39be203c23243dfba8.tar.xz
nfs-utils-17ca77b621fa94a1b0354e39be203c23243dfba8.zip
mountstats: Make print_iostat_summary handle newly appearing mounts
Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--tools/mountstats/mountstats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
index c8cb718..51b4c76 100644
--- a/tools/mountstats/mountstats.py
+++ b/tools/mountstats/mountstats.py
@@ -594,7 +594,7 @@ def print_iostat_summary(old, new, devices, time):
for device in devices:
stats = DeviceData()
stats.parse_stats(new[device])
- if not old:
+ if not old or device not in old:
stats.display_iostats(time)
else:
old_stats = DeviceData()