From 754d8b79aebadbd92e9cc8a650ff996ddfe581c5 Mon Sep 17 00:00:00 2001 From: Saveliy Yusufov Date: Sat, 3 Feb 2024 16:37:56 -0500 Subject: [PATCH] Print human readable bytes without decimal --- benches/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/utils.py b/benches/utils.py index 3314bea..c5ad355 100644 --- a/benches/utils.py +++ b/benches/utils.py @@ -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",