Skip to content
Permalink
Browse files

Load thermals as float, not string

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 8, 2019
1 parent afd7fdd commit cbe88d5a247646402ae1d9fec6694bb7ae4e15fd
Showing with 1 addition and 1 deletion.
  1. +1 −1 thermallogger.sh
@@ -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();

0 comments on commit cbe88d5

Please sign in to comment.
You can’t perform that action at this time.