From 4cf912e5358ce7fa3ddf6548271de1b240ae6874 Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Tue, 14 Jun 2022 17:17:22 +0200 Subject: [PATCH] Disk: Change GB to GiB --- src/fastfetch.c | 2 +- src/modules/disk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fastfetch.c b/src/fastfetch.c index 69b0c71f3..f148dbce0 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -279,7 +279,7 @@ static inline void printCommandHelp(const char* command) } else if(strcasecmp(command, "disk-format") == 0) { - constructAndPrintCommandHelpFormat("disk", "{}GB / {}GB ({4}%)", 4, + constructAndPrintCommandHelpFormat("disk", "{}GiB / {}GiB ({4}%)", 4, "Used disk space", "Total disk space", "Number of files", diff --git a/src/modules/disk.c b/src/modules/disk.c index 2265bffc8..4515d051d 100644 --- a/src/modules/disk.c +++ b/src/modules/disk.c @@ -36,7 +36,7 @@ static void printStatvfs(FFinstance* instance, FFstrbuf* key, struct statvfs* fs if(instance->config.diskFormat.length == 0) { ffPrintLogoAndKey(instance, key->chars, 0, NULL); - printf("%uGB / %uGB (%u%%)\n", used, total, percentage); + printf("%uGiB / %uGiB (%u%%)\n", used, total, percentage); } else {