mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-12 22:40:54 +01:00
CPU (Linux): fix temperature detection (#1308)
Return proper NaN instead of false -> 0.0 coercion
This commit is contained in:
1 parent
b49c509a6c
commit
89d3924659
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user