summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-11-04 17:42:28 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-11-04 17:44:59 +0100
commitb94a44410a644d720dcdb1f1cd524b8386051ed1 (patch)
tree3bac3f76b0a99de92462607bffb253db0e1c51d6
parenteb53932c059f6b315d18945f484337203a227b4e (diff)
Off-by-one, else snooze -s 1d -t triggers when the file has been touched on 00:00:00...
-rw-r--r--snooze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/snooze.c b/snooze.c
index 73de94e..60f7bff 100644
--- a/snooze.c
+++ b/snooze.c
@@ -279,7 +279,7 @@ int main(int argc, char *argv[])
perror("stat");
t = start - slack - 1 - timewait;
} else {
- t = st.st_mtime;
+ t = st.st_mtime + 1;
}
if (timewait == -1) {
while (t < start - slack)