chiark
/
gitweb
/
~ianmdlvl
/
matchsticks-search.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5483098
)
apply floor to n_over_best
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 8 Mar 2014 22:17:53 +0000
(22:17 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 8 Mar 2014 22:17:53 +0000
(22:17 +0000)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 3e846280687190398546c5f0729f4a71d99b7bf7..87cb8d70fe7eb0508567511492cd0dc063b4f67c 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-113,7
+113,7
@@
static void progress_eol(void) {
static void set_best(double new_best) {
best = new_best;
- n_over_best =
n / best
;
+ n_over_best =
floor(n / best)
;
}
/*----- multicore support -----*/