From b94a44410a644d720dcdb1f1cd524b8386051ed1 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 4 Nov 2015 17:42:28 +0100 Subject: Off-by-one, else snooze -s 1d -t triggers when the file has been touched on 00:00:00... --- snooze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3