From ba8a5a882d8317207a91d096f1574e987dfef428 Mon Sep 17 00:00:00 2001 From: George Amanakis Date: Wed, 4 Dec 2019 16:24:56 -0500 Subject: [PATCH] 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 Reviewed-by: Kjeld Schouten Signed-off-by: George Amanakis Closes #9669 --- cmd/arc_summary/arc_summary3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/arc_summary/arc_summary3 b/cmd/arc_summary/arc_summary3 index 7bee77061d50..e9890bf21e69 100755 --- a/cmd/arc_summary/arc_summary3 +++ b/cmd/arc_summary/arc_summary3 @@ -677,10 +677,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()