summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-07-11 16:47:13 +0200
committerOskar <[email protected]>2024-07-11 16:47:13 +0200
commit8cb5039aebebdcd0aef6e8a69ff355372bca6ad9 (patch)
treee9d41727a6a88711167e6a978b0ec730419224e2
parent76f4f70ac1cef4df8b68af7ea0c6cd87c2852c0f (diff)
small improvement
-rw-r--r--trashsys.c4
1 files changed, 2 insertions, 2 deletions
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) {