diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-09-07 11:53:58 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-24 18:06:36 +0200 |
commit | 29ec1151436bd539dc659a394622cdd2d672f975 (patch) | |
tree | 6c53a7c5ffe9e8dfd77d451d174c20ff4b1e0c41 /Process.c | |
parent | 47e2cefe02dffe00369e5630eb1e3f54174f20af (diff) |
Update IO rate display to use NAN on error
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |