diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-09-18 17:04:01 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-24 18:06:36 +0200 |
commit | 321960bd96069ffefe209cf5da7eb7fca6489d53 (patch) | |
tree | 0ebd2ca283dfc3a7edc0a062300887459c3cc061 /linux/LinuxProcess.c | |
parent | 3c65d78d77e43de12284417012fad2d8c195770e (diff) |
Update delay accounting to use NAN on error
Diffstat (limited to 'linux/LinuxProcess.c')
-rw-r--r-- | linux/LinuxProcess.c | 2 |
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); |