diff --git a/app/lib/system.php b/app/lib/system.php index 22f7255a..a0aeb51d 100644 --- a/app/lib/system.php +++ b/app/lib/system.php @@ -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}'"); diff --git a/includes/system.php b/includes/system.php index 774745b9..05735984 100755 --- a/includes/system.php +++ b/includes/system.php @@ -138,6 +138,7 @@ function DisplaySystem(&$extraFooterScripts) $cores = $system->processorCount(); $os = $system->operatingSystem(); $kernel = $system->kernelVersion(); + $systime = $system->systime(); // mem used $memused = $system->usedMemory(); @@ -207,6 +208,7 @@ function DisplaySystem(&$extraFooterScripts) "serverBind", "hostname", "uptime", + "systime", "cores", "os", "kernel", diff --git a/locale/en_US/LC_MESSAGES/messages.mo b/locale/en_US/LC_MESSAGES/messages.mo index 2e8e16f3..376390db 100644 Binary files a/locale/en_US/LC_MESSAGES/messages.mo and b/locale/en_US/LC_MESSAGES/messages.mo differ diff --git a/locale/en_US/LC_MESSAGES/messages.po b/locale/en_US/LC_MESSAGES/messages.po index 89eb0f97..67687e48 100644 --- a/locale/en_US/LC_MESSAGES/messages.po +++ b/locale/en_US/LC_MESSAGES/messages.po @@ -737,6 +737,9 @@ msgstr "Pi Revision" msgid "Uptime" msgstr "Uptime" +msgid "System Time" +msgstr "System Time" + msgid "Memory Used" msgstr "Memory Used" diff --git a/templates/system/basic.php b/templates/system/basic.php index 887eeea7..e231c216 100644 --- a/templates/system/basic.php +++ b/templates/system/basic.php @@ -24,6 +24,9 @@ include('includes/sysstats.php');
+
+
+