From: Martin Mares Date: Tue, 30 Sep 1997 14:57:09 +0000 (+0000) Subject: Also showing number of logged-in users in nuptime. X-Git-Tag: v1.13~46 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3e7c12ef30875ac44cc6455e1f5d2a4d1385216c;p=nwho.git Also showing number of logged-in users in nuptime. --- diff --git a/ChangeLog b/ChangeLog index 9a3e5a8..b5eb130 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ Tue Sep 30 16:52:44 1997 Martin Mares * nwho.c (scan): <= instead of < was causing invalid messages about invalid records. + (show_uptime): Also shows number of users logged in. Fri Sep 26 23:45:57 1997 Martin Mares diff --git a/nwho.c b/nwho.c index c0737f5..b41adc8 100644 --- a/nwho.c +++ b/nwho.c @@ -58,7 +58,7 @@ show_uptime(char *name, struct rywho_pkt *p) int l = ntohl(p->avl[i]); printf(" %2d.%02d", l/100, l%100); } - putchar('\n'); + printf(" %3d users\n", (int) ntohl(p->num_users)); } static void