Skip to content

Commit

Permalink
Simplify expression in Process_updateCPUFieldWidths()
Browse files Browse the repository at this point in the history
Because the compilers weren't yet able to optimize this one. :)
  • Loading branch information
Explorer09 authored and segabor committed Mar 23, 2024
1 parent 205486b commit b7ae5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b7ae5d0

Please sign in to comment.