From f8135b247eec2b971f725fbd32649c2070707a98 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 4 Oct 2002 12:22:58 +0000 Subject: [PATCH] Oops. --- nwho.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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