From: Martin Mares Date: Fri, 4 Oct 2002 12:22:58 +0000 (+0000) Subject: Oops. X-Git-Tag: v1.13~30 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f8135b247eec2b971f725fbd32649c2070707a98;p=nwho.git Oops. --- diff --git a/nwho.c b/nwho.c index 3adb1ec..d7e1f19 100644 --- a/nwho.c +++ b/nwho.c @@ -53,7 +53,7 @@ show_uptime(char *name, struct rywho_pkt *p) { int i; - if (p->server_time - now >= DEFAULT_DOWN_TIME) + if (now - ntohl(p->server_time) >= DEFAULT_DOWN_TIME) { printf("%-16s down\n", name); return; @@ -76,7 +76,7 @@ show_users(char *name, struct rywho_pkt *p) int m = ntohl(p->num_users); struct userinfo *i; - if (p->server_time - now >= DEFAULT_DOWN_TIME) + if (now - ntohl(p->server_time) >= DEFAULT_DOWN_TIME) return; for(u=0; u