Skip to content

Commit

Permalink
Fix mismatch type warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
martignoni committed Nov 11, 2018
1 parent 8142c2d commit 2460a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Expand Up @@ -95,10 +95,10 @@
$dhcpclientnumber = count($leases);

// Get CPU temperature.
$cputemperature = file_get_contents('/sys/class/thermal/thermal_zone0/temp') / 1000 . ' °C';
$cputemperature = intval(file_get_contents('/sys/class/thermal/thermal_zone0/temp')) / 1000 . ' °C';

// Get CPU frequency.
$cpufrequency = file_get_contents('/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq') / 1000 . ' MHz';
$cpufrequency = intval(file_get_contents('/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq')) / 1000 . ' MHz';

// Get system uptime.
$rawuptime = intval(file_get_contents('/proc/uptime'));
Expand Down

0 comments on commit 2460a1d

Please sign in to comment.