From: Martin Mares Date: Fri, 31 Dec 2010 15:18:00 +0000 (+0100) Subject: Fixed calculation of idle time (only atime should be used) X-Git-Tag: v1.13~18 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b62667ca593722d6a70fc8e107a2153501aff9a3;p=nwho.git Fixed calculation of idle time (only atime should be used) --- diff --git a/nwhod.c b/nwhod.c index 1881c98..5d0cee0 100644 --- a/nwhod.c +++ b/nwhod.c @@ -107,10 +107,6 @@ scan_utmp(struct nwho_pkt *p, time_t now) continue; h->mesg_y = !!(S_IWGRP & st.st_mode); last = st.st_atime; - if (st.st_mtime > last) - last = st.st_mtime; - if (st.st_ctime > last) - last = st.st_ctime; if (now < last) last = now; h->idle_time = htonl(now - last);