summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-09-07 11:53:58 +0200
committercgzones <cgzones@googlemail.com>2020-09-24 18:06:36 +0200
commit29ec1151436bd539dc659a394622cdd2d672f975 (patch)
tree6c53a7c5ffe9e8dfd77d451d174c20ff4b1e0c41 /Process.c
parent47e2cefe02dffe00369e5630eb1e3f54174f20af (diff)
Update IO rate display to use NAN on error
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Process.c b/Process.c
index 428e121f..839db8d7 100644
--- a/Process.c
+++ b/Process.c
@@ -219,7 +219,7 @@ void Process_outputRate(RichString* str, char* buffer, int n, double rate, int c
largeNumberColor = CRT_colors[PROCESS];
processMegabytesColor = CRT_colors[PROCESS];
}
- if (rate == -1) {
+ if (isnan(rate)) {
int len = snprintf(buffer, n, " no perm ");
RichString_appendn(str, CRT_colors[PROCESS_SHADOW], buffer, len);
} else if (rate < ONE_K) {

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