Skip to content

Commit

Permalink
CPU (Linux): fix temperature detection (#1308)
Browse files Browse the repository at this point in the history
Return proper NaN instead of false -> 0.0 coercion
  • Loading branch information
kralverde authored Oct 1, 2024
1 parent b49c509 commit 89d3924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detection/cpu/cpu_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 89d3924

Please sign in to comment.