diff --git a/host/host_darwin.go b/host/host_darwin.go index bc2cf37..1d7efda 100644 --- a/host/host_darwin.go +++ b/host/host_darwin.go @@ -97,7 +97,7 @@ func Users() ([]UserStat, error) { if err != nil { continue } - if u.Line[0] == 0 { // skip if terminal is empty + if u.Type != 7 { // skip if not USERPROCESS continue } user := UserStat{