From 979aca98cc74d0d9420a63d148a1f9e8e9f89976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 2 Mar 2021 21:59:56 +0100 Subject: Use uppercase floating point literal suffix --- Process.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Process.c') diff --git a/Process.c b/Process.c index 3fbcb634..58bd6a90 100644 --- a/Process.c +++ b/Process.c @@ -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); -- cgit v1.2.3