We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0e3f75 commit 4ca437bCopy full SHA for 4ca437b
1 file changed
auto-shutdown.sh
@@ -5,7 +5,7 @@
5
uptime=$(</proc/uptime)
6
uptime=${uptime%%.*}
7
8
-num_users=$(who | wc -l)
+num_users=$(who -m | wc -l)
9
num_notty_logins=$(pgrep -ai sshd | grep "@notty" | wc -l)
10
11
# Ensure that the system remains up after boot.
0 commit comments