]> granicus.if.org Git - zfs/commit
Rewrite of function fBytes() in arc_summary.py
authorScot W. Stevenson <scot.stevenson@gmail.com>
Wed, 25 Oct 2017 06:29:02 +0000 (08:29 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 30 Oct 2017 21:44:35 +0000 (14:44 -0700)
commit47c8e7fd97d8406f3fe51882a4a2787103012a82
treefd602b84c8734ea6cd02699e3b80f53a37d4e026
parent5c2552c56456191e8038efe25ed66270c3f1501a
Rewrite of function fBytes() in arc_summary.py

Replace if-elif-else construction with shorter loop;
remove unused parameter "Decimal"; centralize format
string; add function documentation string; conform to
PEP8.

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