diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-03-02 21:59:56 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-03-02 22:03:20 +0100 |
commit | 979aca98cc74d0d9420a63d148a1f9e8e9f89976 (patch) | |
tree | 37ad68553aa6274a395793dc27b5d4267c19adde /Process.c | |
parent | df818b9904af6141e2f9ba4cfff51886b0dbdf52 (diff) |
Use uppercase floating point literal suffix
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -316,12 +316,12 @@ void Process_writeField(const Process* this, RichString* str, ProcessField field if (field == PERCENT_NORM_CPU) { cpuPercentage /= this->processList->cpuCount; } - if (cpuPercentage > 999.9f) { + if (cpuPercentage > 999.9F) { xSnprintf(buffer, n, "%4u ", (unsigned int)cpuPercentage); - } else if (cpuPercentage > 99.9f) { + } else if (cpuPercentage > 99.9F) { xSnprintf(buffer, n, "%3u. ", (unsigned int)cpuPercentage); } else { - if (cpuPercentage < 0.05f) + if (cpuPercentage < 0.05F) attr = CRT_colors[PROCESS_SHADOW]; xSnprintf(buffer, n, "%4.1f ", cpuPercentage); @@ -329,10 +329,10 @@ void Process_writeField(const Process* this, RichString* str, ProcessField field break; } case PERCENT_MEM: - if (this->percent_mem > 99.9f) { + if (this->percent_mem > 99.9F) { xSnprintf(buffer, n, "100. "); } else { - if (this->percent_mem < 0.05f) + if (this->percent_mem < 0.05F) attr = CRT_colors[PROCESS_SHADOW]; xSnprintf(buffer, n, "%4.1f ", this->percent_mem); |