Add system time to System > Basic tab

This commit is contained in:
billz
2023-06-04 15:27:54 +00:00
parent 47cbd520d0
commit da091b9142
5 changed files with 14 additions and 0 deletions

View File

@@ -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}'");