From 95112b1eb06a4be531ded59563d53a63a8d614e8 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 8 Aug 2021 12:04:30 +0200 Subject: Opening! --- admin/api/serverTemp.php | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'admin/api/serverTemp.php') diff --git a/admin/api/serverTemp.php b/admin/api/serverTemp.php index 19e383a..55cf34b 100644 --- a/admin/api/serverTemp.php +++ b/admin/api/serverTemp.php @@ -1,20 +1,20 @@ -"); -exec("sensors -j", $out); -$outp = implode("\n", $out); -$outd = json_decode($outp, true); - -echo(round($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"], 1)); - -?>°C, 90) { - echo("completely overheating!"); -} else if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 60) { - echo("starting to throttle!"); -} else { - echo("under normal temperatures"); +"); +exec("sensors -j", $out); +$outp = implode("\n", $out); +$outd = json_decode($outp, true); + +echo(round($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"], 1)); + +?>°C, 90) { + echo("completely overheating!"); +} else if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 60) { + echo("starting to throttle!"); +} else { + echo("under normal temperatures"); } \ No newline at end of file -- cgit