HomeFreeBSD

Rewrite of function fBytes() in arc_summary.py

Description

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

Details

Provenance
Scot W. Stevenson <scot.stevenson@gmail.com>Authored on Oct 25 2017, 6:29 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 30 2017, 9:44 PM
Parents
rG5c2552c56456: systemd zfs-import.target and documentation
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG47c8e7fd97d8: Rewrite of function fBytes() in arc_summary.py (authored by Scot W. Stevenson <scot.stevenson@gmail.com>).Oct 30 2017, 9:44 PM