summaryrefslogtreecommitdiffstats
path: root/linux/GPU.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-04-06 20:30:22 +0200
committercgzones <cgzones@googlemail.com>2024-04-08 18:12:39 +0200
commit56d7622902c2eed2f9f3a86591881ad3cf96f73b (patch)
treeb88207156d8df03f8fa93d7544a65a8f732adf33 /linux/GPU.c
parent626db518b350bb9b68b27f8fb90d440efddc2d21 (diff)
Use uppercase floating point literals
Diffstat (limited to 'linux/GPU.c')
-rw-r--r--linux/GPU.c6
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:

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