summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-09-18 17:04:01 +0200
committercgzones <cgzones@googlemail.com>2020-09-24 18:06:36 +0200
commit321960bd96069ffefe209cf5da7eb7fca6489d53 (patch)
tree0ebd2ca283dfc3a7edc0a062300887459c3cc061 /linux/LinuxProcess.c
parent3c65d78d77e43de12284417012fad2d8c195770e (diff)
Update delay accounting to use NAN on error
Diffstat (limited to 'linux/LinuxProcess.c')
-rw-r--r--linux/LinuxProcess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index ccdb9da8..a589d62e 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -182,7 +182,7 @@ bool LinuxProcess_setIOPriority(LinuxProcess* this, Arg ioprio) {
#ifdef HAVE_DELAYACCT
void LinuxProcess_printDelay(float delay_percent, char* buffer, int n) {
- if (delay_percent == -1LL) {
+ if (isnan(delay_percent)) {
xSnprintf(buffer, n, " N/A ");
} else {
xSnprintf(buffer, n, "%4.1f ", delay_percent);

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