diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-11-04 17:42:28 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-11-04 17:44:59 +0100 |
commit | b94a44410a644d720dcdb1f1cd524b8386051ed1 (patch) | |
tree | 3bac3f76b0a99de92462607bffb253db0e1c51d6 | |
parent | eb53932c059f6b315d18945f484337203a227b4e (diff) | |
download | snooze-b94a44410a644d720dcdb1f1cd524b8386051ed1.tar.gz snooze-b94a44410a644d720dcdb1f1cd524b8386051ed1.tar.xz snooze-b94a44410a644d720dcdb1f1cd524b8386051ed1.zip |
Off-by-one, else snooze -s 1d -t triggers when the file has been touched on 00:00:00...
-rw-r--r-- | snooze.c | 2 |
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) |