diff options
author | Oskar <[email protected]> | 2024-07-11 16:47:13 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-07-11 16:47:13 +0200 |
commit | 8cb5039aebebdcd0aef6e8a69ff355372bca6ad9 (patch) | |
tree | e9d41727a6a88711167e6a978b0ec730419224e2 /trashsys.c | |
parent | 76f4f70ac1cef4df8b68af7ea0c6cd87c2852c0f (diff) |
small improvement
Diffstat (limited to 'trashsys.c')
-rw-r--r-- | trashsys.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |