]> git.proxmox.com Git - mirror_zfs.git/commit
Rewrite fHits() in arc_summary.py with SI units
authorScot W. Stevenson <scot.stevenson@gmail.com>
Sat, 4 Nov 2017 20:33:28 +0000 (21:33 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 4 Nov 2017 20:33:28 +0000 (13:33 -0700)
commitcd1813d36e78ce21fa0b0e48b050e0493f9f6c93
tree18919217f8fd5fd54fa497ec1651133e4b41ad41
parent1c27024e22af4386b592b30d40e6a0820ceb48c1
Rewrite fHits() in arc_summary.py with SI units

Complete rewrite of fHits(). Move units from non-standard English
abbreviations to SI units, thereby avoiding confusion because of
"long scale" and "short scale" numbers. Remove unused parameter
"Decimal". Add function string. Aim to confirm to PEP8.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Scot W. Stevenson <scot.stevenson@gmail.com>
Closes #6815
cmd/arc_summary/arc_summary.py