diff options
author | Explorer09 <explorer09@gmail.com> | 2024-03-21 14:59:40 +0800 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2024-03-22 09:39:12 +0100 |
commit | 95f77eb28bbc7afa4c847515cbcb91909d7fa061 (patch) | |
tree | 86c69495b8d5426038c5a13e4f87a143686bc983 | |
parent | 59b30d692a8d3fca876ff62875c200546d15a178 (diff) |
Simplify expression in Process_updateCPUFieldWidths()
Because the compilers weren't yet able to optimize this one. :)
-rw-r--r-- | Process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |