From f43c81d6ac4e26ed2ce7e22ad7aa39be859520f7 Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Mon, 16 Jul 2007 08:07:29 +0000 Subject: [PATCH] I didn't initialize current time (it worked on my box ?) Hope it's work now, sorry. --- webcit/summary.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webcit/summary.c b/webcit/summary.c index 4efedece5..d3457e71a 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -83,6 +83,15 @@ void wholist_section(void) { time_t last_activity; time_t now; + serv_puts("TIME"); + serv_getln(buf, sizeof buf); + if (buf[0] == '2') { + now = extract_long(&buf[4], 0); + } + else { + now = time(NULL); + } + serv_puts("RWHO"); serv_getln(buf, sizeof buf); if (buf[0] == '1') while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) { -- 2.39.2