Skip to content

Commit

Permalink
Ensure arc_size_break are filled in arc_summary.py
Browse files Browse the repository at this point in the history
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 <dinatale2@llnl.gov>
  • Loading branch information
dinatale2 committed Oct 19, 2017
1 parent 35df0bb commit 4e3ca53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/arc_summary/arc_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4e3ca53

Please sign in to comment.