mirror of https://github.com/shirou/gopsutil
Fix wrong user count
There are empty entries in OpenBSD's utmp that have a line and time entry but no user logged in (the entry is "cleared" after user logs out but not totally as expected in the code here). Current checks are insufficient so check if Name field is empty and skip in that case.pull/1010/head
parent
afe0c04c5d
commit
ab33d5ec89
Loading…
Reference in New Issue