From b62667ca593722d6a70fc8e107a2153501aff9a3 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 31 Dec 2010 16:18:00 +0100 Subject: [PATCH] Fixed calculation of idle time (only atime should be used) --- nwhod.c | 4 ---- 1 file changed, 4 deletions(-) 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); -- 2.39.2