From 95f77eb28bbc7afa4c847515cbcb91909d7fa061 Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Thu, 21 Mar 2024 14:59:40 +0800 Subject: Simplify expression in Process_updateCPUFieldWidths() Because the compilers weren't yet able to optimize this one. :) --- Process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Process.c b/Process.c index 3e0d42bb..c343e77d 100644 --- a/Process.c +++ b/Process.c @@ -1071,7 +1071,7 @@ void Process_updateExe(Process* this, const char* exe) { } void Process_updateCPUFieldWidths(float percentage) { - if (percentage < 99.9F || isNaN(percentage)) { + if (!isgreaterequal(percentage, 99.9F)) { Row_updateFieldWidth(PERCENT_CPU, 4); Row_updateFieldWidth(PERCENT_NORM_CPU, 4); return; -- cgit v1.2.3