diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-08 22:31:51 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-08 22:31:51 +0200 |
commit | 94c57fa247ba107fce8fc1d1fc355191229dbddc (patch) | |
tree | 865048aa574ef63ad322ed8e5057eb7629e03c29 /admin/api/serverTemp.php | |
parent | e255736e3f2a95ee82cadc01b0c70749ab946226 (diff) | |
download | main-94c57fa247ba107fce8fc1d1fc355191229dbddc.tar.gz main-94c57fa247ba107fce8fc1d1fc355191229dbddc.tar.bz2 main-94c57fa247ba107fce8fc1d1fc355191229dbddc.zip |
Permissions system
Diffstat (limited to 'admin/api/serverTemp.php')
-rw-r--r-- | admin/api/serverTemp.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/api/serverTemp.php b/admin/api/serverTemp.php index 55cf34b..613c411 100644 --- a/admin/api/serverTemp.php +++ b/admin/api/serverTemp.php @@ -2,7 +2,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-echo("Server running at <b>");
+echo(l("Server running at", "Serveur fonctionnant à") . " <b>");
exec("sensors -j", $out);
$outp = implode("\n", $out);
$outd = json_decode($outp, true);
@@ -12,9 +12,9 @@ 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!");
+ echo(l("completely overheating!", "en pleine surchauffe !"));
} else if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 60) {
- echo("starting to throttle!");
+ echo(l("starting to throttle!", "commence à être bridé !"));
} else {
- echo("under normal temperatures");
+ echo(l("under normal temperatures", "températures habituelles"));
}
\ No newline at end of file |