]> git.netwichtig.de Git - user/henk/code/snooze.git/blobdiff - snooze.c
Change timefile calculations to respect slack
[user/henk/code/snooze.git] / snooze.c
index 730fb4bb9365b4eeddbb9bd59273a302fc8c0922..1301c76b51705f0d36ca34b32325deed580d07e8 100644 (file)
--- a/snooze.c
+++ b/snooze.c
@@ -301,7 +301,7 @@ main(int argc, char *argv[])
                                t = find_next(t + 1);
                        start = t;
                } else {
-                       if (t + timewait > start)
+                       if (t + timewait > start - slack)
                                start = st.st_mtime + timewait;
                }
        }