Skip to content

Commit

Permalink
Load thermals as float, not string
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Mar 8, 2019
1 parent afd7fdd commit cbe88d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thermallogger.sh
Expand Up @@ -7,7 +7,7 @@
// If you're hoping to see the results, please use: nems-info loadaverage
if (@$argv[1] != 'cron') exit('Do not run this script manually.' . PHP_EOL);

$temp = (file_get_contents('/sys/class/thermal/thermal_zone0/temp')/1000);
$temp = (floatval(file_get_contents('/sys/class/thermal/thermal_zone0/temp'))/1000);

if ($temp > 0) {
$thermal = array();
Expand Down

0 comments on commit cbe88d5

Please sign in to comment.