active users fix

This commit is contained in:
2026-06-23 00:54:31 +02:00
parent 4f00bccbe5
commit 59f1607812

View File

@@ -2,7 +2,7 @@
<?php <?php
$jsonFile = '/opt/html/online.json'; $jsonFile = '/opt/html/online.json';
$activeUsers = shell_exec("ps -eo user=,comm= | awk '$2 ~ /sshd/ {print $1}' | sort -u"); $activeUsers = shell_exec("ps -eo user=,comm= | awk '$2 ~ /sshd/ {print $1}' | grep -v sshd | sort -u");
$activeUsersArray = array_filter(explode("\n", $activeUsers)); $activeUsersArray = array_filter(explode("\n", $activeUsers));