From: Ben Harris Date: Thu, 22 Nov 2018 23:03:00 +0000 (+0000) Subject: Fix need_advance so it can't run off the end. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=7680286456098693f8f069af746a828e020e1180;p=clunk.git Fix need_advance so it can't run off the end. --- diff --git a/clunk.c b/clunk.c index 0f0df9e..2012b4b 100644 --- a/clunk.c +++ b/clunk.c @@ -192,7 +192,7 @@ need_adjust(struct tm const *now) printf("diff = %ld\n", diff); if (diff < 30 || diff >= maxadvance) return STOP; if (diff < 60) return TICK; - if (diff < (10 * 3600)) return ADVANCE; + return ADVANCE; } static void