From 89d3924659210609e0d3a1845e13f615f60da660 Mon Sep 17 00:00:00 2001 From: kralverde <80051564+kralverde@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:43:58 -0400 Subject: [PATCH] CPU (Linux): fix temperature detection (#1308) Return proper NaN instead of false -> 0.0 coercion --- src/detection/cpu/cpu_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/cpu/cpu_linux.c b/src/detection/cpu/cpu_linux.c index 704e506fb..fe08272f2 100644 --- a/src/detection/cpu/cpu_linux.c +++ b/src/detection/cpu/cpu_linux.c @@ -47,7 +47,7 @@ static double parseHwmonDir(FFstrbuf* dir, FFstrbuf* buffer) ffStrbufEqualS(buffer, "coretemp") // Intel ) return value / 1000.; - return false; + return 0.0/0.0; } static double detectCPUTemp(void)