Skip to content

Commit

Permalink
Print human readable bytes without decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
smu160 committed Feb 3, 2024
1 parent 9f48043 commit 754d8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benches/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}


def bytes2human(n, format="%(value).1f %(symbol)s", symbols="customary"):
def bytes2human(n, format="%(value).0f %(symbol)s", symbols="customary"):
"""
Convert n bytes into a human-readable string based on format.
symbols can be either "customary", "customary_ext", "iec" or "iec_ext",
Expand Down

0 comments on commit 754d8b7

Please sign in to comment.