summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-20 16:58:17 +0100
committerChristian Göttsche <cgzones@googlemail.com>2020-12-20 16:58:17 +0100
commit6b100b0cf47dda06d1dc1d38211d910488b5d803 (patch)
tree5c194a6cf2f95cb2cf14ce8487a875c37b1eab6d /linux
parent6e46fd6f1fd840ef6666d6f8293b369d154a3d98 (diff)
Use upper case numeric literals
See https://rules.sonarsource.com/c/RSPEC-818
Diffstat (limited to 'linux')
-rw-r--r--linux/LinuxProcessList.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index b58afa35..39215779 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -1371,8 +1371,8 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_
}
/* period might be 0 after system sleep */
- float percent_cpu = (period < 1e-6) ? 0.0f : ((lp->utime + lp->stime - lasttimes) / period * 100.0);
- proc->percent_cpu = CLAMP(percent_cpu, 0.0f, cpus * 100.0f);
+ float percent_cpu = (period < 1e-6) ? 0.0F : ((lp->utime + lp->stime - lasttimes) / period * 100.0);
+ proc->percent_cpu = CLAMP(percent_cpu, 0.0F, cpus * 100.0F);
proc->percent_mem = proc->m_resident / (double)(pl->totalMem) * 100.0;
if (!preExisting) {

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