From 2b9323ac984326134a60d97462740215212c6ab0 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Wed, 6 Sep 2023 15:45:11 +0200 Subject: [PATCH] Update systeminfo.php Added new function "system_process_count" to see the number of processes executed in the system --- front/systeminfo.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/front/systeminfo.php b/front/systeminfo.php index be34e2d5..54280bbc 100755 --- a/front/systeminfo.php +++ b/front/systeminfo.php @@ -89,6 +89,8 @@ $system_namesystem = shell_exec("uname -o"); $system_full = shell_exec("uname -a"); $system_architecture = shell_exec("uname -m"); $load_average = sys_getloadavg(); +// Count processes +$system_process_count = shell_exec("ps -e --no-headers | wc -l"); //Date & Time $date = new DateTime(); $formatted_date = $date->format('l, F j, Y H:i:s'); @@ -214,6 +216,10 @@ echo '