]> mj.ucw.cz Git - ywho.git/commitdiff
Fixed calculation of idle time. *Again*.
authorMartin Mares <mj@ucw.cz>
Fri, 2 Oct 1998 21:43:09 +0000 (21:43 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 2 Oct 1998 21:43:09 +0000 (21:43 +0000)
ywho.c

diff --git a/ywho.c b/ywho.c
index 373e61369ec75a81a17661f5be93e09c1aa027f8..913a3807f1542d90233d6ede2650cf74896fc496 100644 (file)
--- a/ywho.c
+++ b/ywho.c
@@ -1,7 +1,7 @@
 /*
  *     Extended `who' command, version 1.8.
  *
- *     (c) 1996, 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1996--1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
  *
  *     This software may be freely distributed and used according to the terms
  *     of the GNU General Public License. See file COPYING in any of the GNU packages.
@@ -111,10 +111,12 @@ readutmp(void)
          {
            u->mesg = !!(S_IWGRP & st.st_mode);
            u->click_time = st.st_atime;
-           if (u->click_time < st.st_atime)
-             u->click_time = st.st_atime;
+#if 0
+           if (u->click_time < st.st_mtime)
+             u->click_time = st.st_mtime;
            if (u->click_time < st.st_ctime)
              u->click_time = st.st_ctime;
+#endif
          }
        u->detach = 0;
        usercnt++;