summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Amanakis <[email protected]>2019-12-04 16:24:56 -0500
committerBrian Behlendorf <[email protected]>2019-12-04 13:24:55 -0800
commit12395c7b0bbd2eaaae96d4105bdc83c3d0c73bec (patch)
treeab1d97873bf9eb50c72c59f18abe7d8bcedc534e
parentbe627fc84711d2382d179392e3313f9fda8d24a3 (diff)
Fix reporting of L2ARC hits/misses in arc_summary3
arc_summary3 reports L2ARC hits and misses as Bytes, whereas they should be reported as events. arc_summary2 reports these correctly. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Kjeld Schouten <[email protected]> Signed-off-by: George Amanakis <[email protected]> Closes #9669
-rwxr-xr-xcmd/arc_summary/arc_summary34
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/arc_summary/arc_summary3 b/cmd/arc_summary/arc_summary3
index af49fe3ab..54c7babd5 100755
--- a/cmd/arc_summary/arc_summary3
+++ b/cmd/arc_summary/arc_summary3
@@ -718,10 +718,10 @@ def section_l2arc(kstats_dict):
prt_1('L2ARC breakdown:', f_hits(l2_access_total))
prt_i2('Hit ratio:',
f_perc(arc_stats['l2_hits'], l2_access_total),
- f_bytes(arc_stats['l2_hits']))
+ f_hits(arc_stats['l2_hits']))
prt_i2('Miss ratio:',
f_perc(arc_stats['l2_misses'], l2_access_total),
- f_bytes(arc_stats['l2_misses']))
+ f_hits(arc_stats['l2_misses']))
prt_i1('Feeds:', f_hits(arc_stats['l2_feeds']))
print()