From 8cb5039aebebdcd0aef6e8a69ff355372bca6ad9 Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 11 Jul 2024 16:47:13 +0200 Subject: small improvement --- trashsys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trashsys.c') diff --git a/trashsys.c b/trashsys.c index 79d9723..91bde47 100644 --- a/trashsys.c +++ b/trashsys.c @@ -534,7 +534,7 @@ char *bytes_to_readable_str(size_t bytes, char *str, size_t str_len) { char tmp_str[str_len]; double f_bytes = (double)bytes; int count = 0; - char *fff_a[] = {"B", "KiB", "MiB", "GiB"}; + char *BKMG[] = {"B", "KiB", "MiB", "GiB"}; while (f_bytes >= 1024) { f_bytes = f_bytes / 1024; @@ -546,7 +546,7 @@ char *bytes_to_readable_str(size_t bytes, char *str, size_t str_len) { return NULL; } - return fff_a[count]; + return BKMG[count]; } int lfc_formatted (struct list_file_content *lfc, const bool L_used) { -- cgit v1.2.3