Skip to content
Snippets Groups Projects
Commit 579fcccc authored by Tibo's avatar Tibo
Browse files

Fix

parent 95da335d
No related branches found
No related tags found
No related merge requests found
Pipeline #3311 passed
......@@ -21,12 +21,12 @@ class CPUtemperature extends \App\AbstractSensor
. "<p>You can install it with <code>sudo apt install lm-sensors</code></p>";
}
$CPUTEMPS = self::parse($record['cpu-temperature']);
$temperatures = self::parse($record['cpu-temperature']);
$return = "<table class='table table-sm'>";
$return .= "<tr><th>Name</th><th>Temperature (°C)</th></tr>";
foreach ($CPUTEMPS as $CPUTemp) {
$return .= "<tr><td>" . $CPUTemp->name . "</td><td>"
. $CPUTemp->value . "</td></tr>";
foreach ($temperatures as $temperature) {
$return .= "<tr><td>" . $temperature->name . "</td><td>"
. $temperature->value . "</td></tr>";
}
$return .= "</table>";
return $return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment