diff options
author | Miles Bader <miles@gnu.org> | 1996-10-09 21:45:59 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-10-09 21:45:59 +0000 |
commit | dcb3194c631d50f6290f5ec67af76a947e3b3a5b (patch) | |
tree | 13ad59ca4bc3b641a22a22e2ad6e9f42cf1757fb | |
parent | d03b1e9fac1bf93948c9cf5b3662a6f65e6255d0 (diff) |
(w_fetch): Use tty st_atime for idle time.
-rw-r--r-- | utils/w.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -150,7 +150,7 @@ w_fetch (struct proc_stat *ps, ps_flags_t need, ps_flags_t have) { if (io_stat (tty->port, &stat) == 0) { - hook->idle.tv_sec = now.tv_sec - stat.st_mtime; + hook->idle.tv_sec = now.tv_sec - stat.st_atime; have |= W_PSTAT_IDLE; } } |