]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Fix reporting of L2ARC hits/misses in arc_summary3
authorGeorge Amanakis <gamanakis@gmail.com>
Wed, 4 Dec 2019 21:24:56 +0000 (16:24 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 4 Dec 2019 21:24:55 +0000 (13:24 -0800)
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 <ryan@ixsystems.com>
Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #9669

cmd/arc_summary/arc_summary3

index af49fe3ab392529f445dd19f473e01f8ba1dd763..54c7babd557b38cf9cc781fbe55ff61118aeeffc 100755 (executable)
@@ -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()