From edbeb918e6571b325e101a420dce860054260e4b Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sat, 21 Aug 2010 10:18:24 +0300 Subject: [PATCH] Analyzer: Drop PRETTY_THRESH value to 98 We have reserved five digits for the byte sizes in the print output. However, if the size of a process happens to be for example 101272kB, the size is still below the 100 * 1024 = 102400 kB threshold, which has in fact six digits. Lowering the threshold to 98 will ensure the pretty output is never more than five digits. Signed-off-by: Timo Kokkonen --- analyze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyze.c b/analyze.c index 0e4982b..3090431 100644 --- a/analyze.c +++ b/analyze.c @@ -9,7 +9,7 @@ #define SI_M (SI_k * SI_k) #define SI_G (SI_M * SI_k) -#define PRETTY_THRESH 100 +#define PRETTY_THRESH 98 #define NICE_DIV(a) \ ((a) < SI_k * 4 ? (a) : \ (a < SI_M * PRETTY_THRESH ? ((a) / SI_k) : \ -- 2.45.0