From 69fe6274579540e48b80ed1e321063882c42ded7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 5 Nov 2023 18:45:11 +0300 Subject: [PATCH] du --- build.sh | 0 builder/config.h | 2 +- coreutils/du.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 build.sh diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/builder/config.h b/builder/config.h index 05eeb48..7878969 100644 --- a/builder/config.h +++ b/builder/config.h @@ -14,5 +14,5 @@ const char *libs[] = { }; #define CFLAGS "-Wall -Wextra -pedantic -Os -s -I ../libmu" -#define CC "cc" +#define CC "tcc" #endif diff --git a/coreutils/du.c b/coreutils/du.c index a8f191d..5714801 100644 --- a/coreutils/du.c +++ b/coreutils/du.c @@ -16,7 +16,7 @@ void print(double size, const char *filename) { char c = 0; if (h_flag) { - if (size < 1048576) { + if (size < 1048576 && !m_flag) { size = size / 1024; c = 'K'; }