Skip to content

Commit

Permalink
Utilisation d'un find pour récupérer la temp. CPU sur synology
Browse files Browse the repository at this point in the history
  • Loading branch information
Bbillyben committed Jan 27, 2021
1 parent 8cf7c73 commit c30cd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/Monitoring.class.php
Expand Up @@ -645,7 +645,7 @@ public function getInformations() {
stream_set_blocking($versionsynooutput, true);
$versionsyno = stream_get_contents($versionsynooutput);

$cputemp0cmd = "cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0/device/temp2_input";
$cputemp0cmd = "cat $(find /sys/devices/platform/coretemp.0/* -name temp*_input | head -1)";
$cputemp0output = ssh2_exec($connection, $cputemp0cmd);
stream_set_blocking($cputemp0output, true);
$cputemp0 = stream_get_contents($cputemp0output);
Expand Down

0 comments on commit c30cd9d

Please sign in to comment.