mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Added cputemp + memuse led values
This commit is contained in:
parent
70ca6d03e0
commit
7180501272
@ -13,10 +13,13 @@ $memused = $system->usedMemory();
|
|||||||
$memused_status = "primary";
|
$memused_status = "primary";
|
||||||
if ($memused > 90) {
|
if ($memused > 90) {
|
||||||
$memused_status = "danger";
|
$memused_status = "danger";
|
||||||
|
$memused_led = "service-status-down";
|
||||||
} elseif ($memused > 75) {
|
} elseif ($memused > 75) {
|
||||||
$memused_status = "warning";
|
$memused_status = "warning";
|
||||||
|
$memused_led = "service-status-warn";
|
||||||
} elseif ($memused > 0) {
|
} elseif ($memused > 0) {
|
||||||
$memused_status = "success";
|
$memused_status = "success";
|
||||||
|
$memused_led = "service-status-up";
|
||||||
}
|
}
|
||||||
|
|
||||||
// cpu load
|
// cpu load
|
||||||
@ -33,10 +36,13 @@ if ($cpuload > 90) {
|
|||||||
$cputemp = $system->systemTemperature();
|
$cputemp = $system->systemTemperature();
|
||||||
if ($cputemp > 70) {
|
if ($cputemp > 70) {
|
||||||
$cputemp_status = "danger";
|
$cputemp_status = "danger";
|
||||||
|
$cputemp_led = "service-status-down";
|
||||||
} elseif ($cputemp > 50) {
|
} elseif ($cputemp > 50) {
|
||||||
$cputemp_status = "warning";
|
$cputemp_status = "warning";
|
||||||
|
$cputemp_led = "service-status-warn";
|
||||||
} else {
|
} else {
|
||||||
$cputemp_status = "success";
|
$cputemp_status = "success";
|
||||||
|
$cputemp_led = "service-status-up";
|
||||||
}
|
}
|
||||||
|
|
||||||
// hostapd status
|
// hostapd status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user