aboutsummaryrefslogtreecommitdiff
path: root/admin/api/serverTemp.php
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-08 12:04:30 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-08 12:04:30 +0200
commit95112b1eb06a4be531ded59563d53a63a8d614e8 (patch)
treefd3dc676227309c87a39feab9ca458985e327907 /admin/api/serverTemp.php
parent87303b0d3540037fb94efdde24dbaacb2880d6cb (diff)
downloadmain-95112b1eb06a4be531ded59563d53a63a8d614e8.tar.gz
main-95112b1eb06a4be531ded59563d53a63a8d614e8.tar.bz2
main-95112b1eb06a4be531ded59563d53a63a8d614e8.zip
Opening!
Diffstat (limited to 'admin/api/serverTemp.php')
-rw-r--r--admin/api/serverTemp.php38
1 files changed, 19 insertions, 19 deletions
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 @@
-<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-
-echo("Server running at <b>");
-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</b>, <?php
-
-if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 90) {
- echo("completely overheating!");
-} else if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 60) {
- echo("starting to throttle!");
-} else {
- echo("under normal temperatures");
+<?php
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
+
+echo("Server running at <b>");
+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</b>, <?php
+
+if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 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