From 17ca77b621fa94a1b0354e39be203c23243dfba8 Mon Sep 17 00:00:00 2001 From: Scott Mayhew Date: Mon, 20 Oct 2014 16:41:13 -0400 Subject: mountstats: Make print_iostat_summary handle newly appearing mounts Signed-off-by: Scott Mayhew Signed-off-by: Steve Dickson --- tools/mountstats/mountstats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit