mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Add system time to System > Basic tab
This commit is contained in:
@@ -40,6 +40,12 @@ class Sysinfo
|
||||
return $uptime;
|
||||
}
|
||||
|
||||
public function systime()
|
||||
{
|
||||
$systime = exec("date");
|
||||
return $systime;
|
||||
}
|
||||
|
||||
public function usedMemory()
|
||||
{
|
||||
$used = shell_exec("free -m | awk 'NR==2{ total=$2 ; used=$3 } END { print used/total*100}'");
|
||||
|
Reference in New Issue
Block a user