From 3c65d78d77e43de12284417012fad2d8c195770e Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Mon, 7 Sep 2020 12:24:32 +0200 Subject: Update CPU freq display to use NAN on error --- dragonflybsd/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dragonflybsd/Platform.c') diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c index 3b8e1a0d..e4e78e38 100644 --- a/dragonflybsd/Platform.c +++ b/dragonflybsd/Platform.c @@ -168,7 +168,7 @@ double Platform_setCPUValues(Meter* this, int cpu) { percent = CLAMP(percent, 0.0, 100.0); if (isnan(percent)) percent = 0.0; - v[CPU_METER_FREQUENCY] = -1; + v[CPU_METER_FREQUENCY] = NAN; return percent; } -- cgit v1.2.3