From e0e5997c53ca9b61171d01b5a30c40d915622de2 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sun, 20 Sep 2020 19:54:53 +0200 Subject: [PATCH] Fix minor regression in number highlighting Fixes #163 --- Process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Process.c b/Process.c index 343a736d..428e121f 100644 --- a/Process.c +++ b/Process.c @@ -93,7 +93,7 @@ void Process_humanNumber(RichString* str, unsigned long number, bool coloring) { number %= 1000; len = snprintf(buffer, 10, "%03luM ", number); RichString_appendn(str, processMegabytesColor, buffer, len); - } else if (number < 100 * ONE_M) { + } else if (number < 100000 * ONE_K) { //2 digit GB, 1 digit MB number /= 100 * ONE_K; len = snprintf(buffer, 10, "%2lu", number/10);