]> git.netwichtig.de Git - user/henk/code/snooze.git/commitdiff
Change value because st.st_mtime might not be set, see above fix-incorrect-mtime-usage
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Tue, 22 Dec 2020 23:40:49 +0000 (00:40 +0100)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Tue, 22 Dec 2020 23:40:49 +0000 (00:40 +0100)
snooze.c

index 1301c76b51705f0d36ca34b32325deed580d07e8..ed929c77e8c38789a0a6ea11a316b7eb0b73e1e4 100644 (file)
--- a/snooze.c
+++ b/snooze.c
@@ -302,7 +302,7 @@ main(int argc, char *argv[])
                        start = t;
                } else {
                        if (t + timewait > start - slack)
-                               start = st.st_mtime + timewait;
+                               start = t + timewait;
                }
        }