diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-04-06 20:30:22 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2024-04-08 18:12:39 +0200 |
commit | 56d7622902c2eed2f9f3a86591881ad3cf96f73b (patch) | |
tree | b88207156d8df03f8fa93d7544a65a8f732adf33 /linux/GPU.c | |
parent | 626db518b350bb9b68b27f8fb90d440efddc2d21 (diff) |
Use uppercase floating point literals
Diffstat (limited to 'linux/GPU.c')
-rw-r--r-- | linux/GPU.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/GPU.c b/linux/GPU.c index 37d5d7c4..a4af9207 100644 --- a/linux/GPU.c +++ b/linux/GPU.c @@ -87,7 +87,7 @@ void GPU_readProcessData(LinuxProcessTable* lpt, LinuxProcess* lp, openat_arg_t /* check only if active in last check or last scan was more than 5s ago */ if (lp->gpu_activityMs != 0 && host->monotonicMs - lp->gpu_activityMs < 5000) { - lp->gpu_percent = 0.0f; + lp->gpu_percent = 0.0F; return; } lp->gpu_activityMs = host->monotonicMs; @@ -222,11 +222,11 @@ void GPU_readProcessData(LinuxProcessTable* lpt, LinuxProcess* lp, openat_arg_t gputimeDelta = saturatingSub(new_gpu_time, lp->gpu_time); monotonicTimeDelta = host->monotonicMs - host->prevMonotonicMs; - lp->gpu_percent = 100.0f * gputimeDelta / (1000 * 1000) / monotonicTimeDelta; + lp->gpu_percent = 100.0F * gputimeDelta / (1000 * 1000) / monotonicTimeDelta; lp->gpu_activityMs = 0; } else - lp->gpu_percent = 0.0f; + lp->gpu_percent = 0.0F; out: |