From 4e3ca53b2ee88948fae0a5c8778e6b93d13b619c Mon Sep 17 00:00:00 2001 From: Giuseppe Di Natale Date: Thu, 19 Oct 2017 13:01:09 -0700 Subject: [PATCH] Ensure arc_size_break are filled in arc_summary.py When printing output in arc_summary, all possible keys are expected in the output data structure. For the arc size breakdown, output is conditionally filled and does not expect arc target size to be equal to the arc size. Signed-off-by: Giuseppe Di Natale --- cmd/arc_summary/arc_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/arc_summary/arc_summary.py b/cmd/arc_summary/arc_summary.py index f5aac737b3dc..cbc5f7246df8 100755 --- a/cmd/arc_summary/arc_summary.py +++ b/cmd/arc_summary/arc_summary.py @@ -241,7 +241,7 @@ def get_arc_summary(Kstat): 'num': fBytes(mfu_size), } - elif arc_size < target_size: + else: mfu_size = (target_size - mru_size) output['arc_size_break']['recently_used_cache_size'] = { 'per': fPerc(mru_size, target_size),