summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}