summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2020-12-23 00:40:49 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2020-12-23 00:40:49 +0100
commitb21081de7418f99ec301603127e3e1b025eb82d1 (patch)
treeb759cf2b4cf82c57f8789372b59ffe069f3f4b4d
parentb693f9aa9bc33d512e6f6a8560fb5254b33c5275 (diff)
Change value because st.st_mtime might not be set, see abovefix-incorrect-mtime-usage
-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;
}
}