From af3d9bd3bba567fd71ec10940f753b1842e512d0 Mon Sep 17 00:00:00 2001 From: Jonathan Zhang Date: Tue, 2 Nov 2021 00:25:35 -0700 Subject: [PATCH] Update stats.py Change descriptions to *bibytes to avoid confusion --- ocflib/lab/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocflib/lab/stats.py b/ocflib/lab/stats.py index 23bd5b3a..18b91fa7 100644 --- a/ocflib/lab/stats.py +++ b/ocflib/lab/stats.py @@ -251,7 +251,7 @@ def humanize_bytes(n): Adapted from http://stackoverflow.com/a/1094933/1979001 """ - for unit in ['', 'KB', 'MB', 'GB', 'TB', 'PB']: + for unit in ['', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB']: if n < 1024.0: return '{:3.2f} {}'.format(n, unit) n /= 1024.0