summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorGeorge Amanakis <[email protected]>2020-08-17 14:04:06 -0400
committerGitHub <[email protected]>2020-08-17 11:04:06 -0700
commit9352d8c00402d2b10c0a2f547445dadda3bb0062 (patch)
treed8d96974c403f4e4313375d7221448a8137c9dbe /cmd
parent3eaf76a8d2a6fb9bfaeca888bfd20535d7e1e71b (diff)
Fix reporting of L2ARC writes in arc_summary3
arc_summary3 reports L2ARC writes in bytes. However, the related arc_stat is reported as hits. arc_summary2 report this correctly. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: George Amanakis <[email protected]> Closes #10717
Diffstat (limited to 'cmd')
-rwxr-xr-xcmd/arc_summary/arc_summary36
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/arc_summary/arc_summary3 b/cmd/arc_summary/arc_summary3
index 1b11b2c22..c920b8e53 100755
--- a/cmd/arc_summary/arc_summary3
+++ b/cmd/arc_summary/arc_summary3
@@ -755,13 +755,13 @@ def section_l2arc(kstats_dict):
prt_i2('Done ratio:',
f_perc(arc_stats['l2_writes_done'],
arc_stats['l2_writes_sent']),
- f_bytes(arc_stats['l2_writes_done']))
+ f_hits(arc_stats['l2_writes_done']))
prt_i2('Error ratio:',
f_perc(arc_stats['l2_writes_error'],
arc_stats['l2_writes_sent']),
- f_bytes(arc_stats['l2_writes_error']))
+ f_hits(arc_stats['l2_writes_error']))
else:
- prt_i2('Writes sent:', '100 %', f_bytes(arc_stats['l2_writes_sent']))
+ prt_i2('Writes sent:', '100 %', f_hits(arc_stats['l2_writes_sent']))
print()
print('L2ARC evicts:')