diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-09-07 12:24:32 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-24 18:06:36 +0200 |
commit | 3c65d78d77e43de12284417012fad2d8c195770e (patch) | |
tree | 77854c971c13784e9e734aecc1aaf5213fc8f98c /openbsd | |
parent | ebcf92464353d44c1d01b5afd286314415a66c96 (diff) |
Update CPU freq display to use NAN on error
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c index cb162078..bd5ef7ef 100644 --- a/openbsd/Platform.c +++ b/openbsd/Platform.c @@ -162,7 +162,7 @@ double Platform_setCPUValues(Meter* this, int cpu) { v[CPU_METER_STEAL] = 0.0; v[CPU_METER_GUEST] = 0.0; v[CPU_METER_IOWAIT] = 0.0; - v[CPU_METER_FREQUENCY] = -1; + v[CPU_METER_FREQUENCY] = NAN; Meter_setItems(this, 8); totalPercent = v[0]+v[1]+v[2]+v[3]; } else { |