mirror of git://git.suckless.org/ubase
Ignore `LOGIN' name when counting the number of users
This commit is contained in:
parent
a1bc935354
commit
b66839681f
2
uptime.c
2
uptime.c
|
@ -51,6 +51,8 @@ main(int argc, char *argv[])
|
||||||
if (!*usr.ut_name || !*usr.ut_line ||
|
if (!*usr.ut_name || !*usr.ut_line ||
|
||||||
usr.ut_line[0] == '~')
|
usr.ut_line[0] == '~')
|
||||||
continue;
|
continue;
|
||||||
|
if (strcmp(usr.ut_name, "LOGIN") == 0)
|
||||||
|
continue;
|
||||||
nusers++;
|
nusers++;
|
||||||
}
|
}
|
||||||
fclose(ufp);
|
fclose(ufp);
|
||||||
|
|
Loading…
Reference in New Issue