From 82ccba51cb2c5527888c26d61b58ec6070aa8b81 Mon Sep 17 00:00:00 2001 From: night0721 Date: Sun, 17 Mar 2024 22:19:19 +0000 Subject: [PATCH] revert to use units for 1024 bytes instead for 1000 bytes --- ccc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccc.c b/ccc.c index c559237..147787b 100644 --- a/ccc.c +++ b/ccc.c @@ -495,7 +495,7 @@ long add_file_stat(char *filepath, int ftype) /* max 25 chars due to long, space, suffix and null */ char *size = memalloc(25 * sizeof(char)); int unit = 0; - const char* units[] = {"B", "KB", "MB", "GB", "TB", "PB"}; + const char* units[] = {"B", "KiB", "MiB", "GiB", "TiB", "PiB"}; while (bytes > 1024) { bytes /= 1024; unit++;