diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_users.d/users.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_users.d/users.c b/plugins/check_users.d/users.c index 95c05d6f..a8b168a0 100644 --- a/plugins/check_users.d/users.c +++ b/plugins/check_users.d/users.c | |||
@@ -61,7 +61,7 @@ get_num_of_users_wrapper get_num_of_users_systemd() { | |||
61 | 61 | ||
62 | // Test whether we booted with systemd | 62 | // Test whether we booted with systemd |
63 | if (sd_booted() > 0) { | 63 | if (sd_booted() > 0) { |
64 | int users = sd_get_sessions(NULL); | 64 | int users = sd_get_uids(NULL); |
65 | if (users >= 0) { | 65 | if (users >= 0) { |
66 | // Success | 66 | // Success |
67 | result.users = users; | 67 | result.users = users; |