chiark
/
gitweb
/
~bjharris
/
clunk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1a9b5d
)
Fix need_advance so it can't run off the end.
author
Ben Harris
<bjh21@bjh21.me.uk>
Thu, 22 Nov 2018 23:03:00 +0000
(23:03 +0000)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 8 Dec 2018 22:30:09 +0000
(22:30 +0000)
clunk.c
patch
|
blob
|
history
diff --git
a/clunk.c
b/clunk.c
index 0f0df9e5d6d0b14a61e7c43affee725b0dfcefb8..2012b4b1ad04cfb84e08b27a2507738746b15752 100644
(file)
--- 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