fixed directory-size.sh

This commit is contained in:
Samuel Philipp 2021-05-16 03:12:23 +02:00
parent c00a6deb4b
commit 73eab6c715
Signed by: samuel-p
GPG key ID: 2AD495D17760CB4E

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
ALL_SESSIONS=$(who | wc -l) ALL_SESSIONS=$(w -h | wc -l)
ROOT_SESSIONS=$(who | grep root | wc -l) ROOT_SESSIONS=$(w -h | grep priv | wc -l)
echo "# HELP node_active_sessions active sessions by type." echo "# HELP node_active_sessions active sessions by type."
echo "# TYPE node_active_sessions gauge" echo "# TYPE node_active_sessions gauge"