about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2020-12-23 00:40:49 +0100
committerLeah Neukirchen <leah@vuxu.org>2021-01-07 18:07:07 +0100
commit05b1deee7eb53f9a44f984bc2b6945e91af2581c (patch)
treeb759cf2b4cf82c57f8789372b59ffe069f3f4b4d
parent6e3598566c65bebc37acc8230fc2159c89518dc3 (diff)
downloadsnooze-05b1deee7eb53f9a44f984bc2b6945e91af2581c.tar.gz
snooze-05b1deee7eb53f9a44f984bc2b6945e91af2581c.tar.xz
snooze-05b1deee7eb53f9a44f984bc2b6945e91af2581c.zip
Change value because st.st_mtime might not be set, see above
-rw-r--r--snooze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/snooze.c b/snooze.c
index 1301c76..ed929c7 100644
--- 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;
 		}
 	}