diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-12-20 17:17:51 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-12-20 17:17:51 +0100 |
commit | 4a73e803389abf92018252411ebbb2f2d1661aab (patch) | |
tree | ffc02915d3f847ce5542ffad0411db9f8b82559b | |
parent | 5fa1c7040d0d86c99cb7efb210610ad8e973e546 (diff) |
Make remaining number literals use uppercase
-rw-r--r-- | darwin/DarwinProcess.c | 2 | ||||
-rw-r--r-- | linux/LinuxProcessList.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/darwin/DarwinProcess.c b/darwin/DarwinProcess.c index 15eff08c..e28e9b50 100644 --- a/darwin/DarwinProcess.c +++ b/darwin/DarwinProcess.c @@ -299,7 +299,7 @@ void DarwinProcess_setFromLibprocPidinfo(DarwinProcess* proc, DarwinProcessList* uint64_t total_existing_time = proc->stime + proc->utime; uint64_t total_current_time = pti.pti_total_system + pti.pti_total_user; - if (total_existing_time && 1e-6 < time_interval) { + if (total_existing_time && 1E-6 < time_interval) { uint64_t total_time_diff = total_current_time - total_existing_time; proc->super.percent_cpu = ((double)total_time_diff / time_interval) * 100.0; } else { diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 39215779..f142d0e6 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -1371,7 +1371,7 @@ 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); + 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; |