From b4836bf30489a6bfd565bedb062b15193c714893 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 8 Nov 2019 08:41:55 +0000 Subject: [PATCH] Disables console when monitor mode is enabled. Thanks @sedgett --- templates/system.php | 137 ++++++++++++++++++++++--------------------- 1 file changed, 69 insertions(+), 68 deletions(-) diff --git a/templates/system.php b/templates/system.php index 48a95448..fbaff6a7 100755 --- a/templates/system.php +++ b/templates/system.php @@ -8,21 +8,21 @@ $cores = $system->processorCount(); $memused = $system->usedMemory(); $memused_status = "primary"; if ($memused > 90) { - $memused_status = "danger"; + $memused_status = "danger"; } elseif ($memused > 75) { - $memused_status = "warning"; + $memused_status = "warning"; } elseif ($memused > 0) { - $memused_status = "success"; + $memused_status = "success"; } // cpu load $cpuload = $system->systemLoadPercentage(); if ($cpuload > 90) { - $cpuload_status = "danger"; + $cpuload_status = "danger"; } elseif ($cpuload > 75) { - $cpuload_status = "warning"; + $cpuload_status = "warning"; } elseif ($cpuload > 0) { - $cpuload_status = "success"; + $cpuload_status = "success"; } ?> @@ -37,71 +37,72 @@ if ($cpuload > 90) {
- showMessages(); ?> -
- - + showMessages(); ?> + + + -
-
-
-
-

-
-
-
-
-
-
% -
-
-
-
-
% -
-
+
+
+
+
+

+
+
+
+
+
+
% +
+
+
+
+
% +
+
- - - - " /> - " /> - - - -
-
-
+
+ + + " /> + " /> + + +
+
+
+
-
-

-
-
- - -
-
- " /> - -
- -
-
-
- -
-
-
-
- +
+

+
+
+ + +
+
+ " /> + +
+
+
+
+ + + +
+
+
+
+