summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-10-09 21:45:59 +0000
committerMiles Bader <miles@gnu.org>1996-10-09 21:45:59 +0000
commitdcb3194c631d50f6290f5ec67af76a947e3b3a5b (patch)
tree13ad59ca4bc3b641a22a22e2ad6e9f42cf1757fb /utils
parentd03b1e9fac1bf93948c9cf5b3662a6f65e6255d0 (diff)
(w_fetch): Use tty st_atime for idle time.
Diffstat (limited to 'utils')
-rw-r--r--utils/w.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/w.c b/utils/w.c
index 16b56291..3cd9eccd 100644
--- a/utils/w.c
+++ b/utils/w.c
@@ -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;
}
}