summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2024-03-21 14:59:40 +0800
committerBenBE <BenBE@geshi.org>2024-03-22 09:39:12 +0100
commit95f77eb28bbc7afa4c847515cbcb91909d7fa061 (patch)
tree86c69495b8d5426038c5a13e4f87a143686bc983
parent59b30d692a8d3fca876ff62875c200546d15a178 (diff)
Simplify expression in Process_updateCPUFieldWidths()
Because the compilers weren't yet able to optimize this one. :)
-rw-r--r--Process.c2
1 files changed, 1 insertions, 1 deletions
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy