]> git.ozlabs.org Git - ccan/commitdiff
timer: fix two corruption bugs.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 19 May 2015 06:59:54 +0000 (16:29 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 May 2015 07:07:26 +0000 (16:37 +0930)
We fill the upper buckets after we've moved on from the first bucket
in this layer.  This means two things:
1) If we have to look at an upper layer, we need to look at the next bucket,
   unless offset is 0.
2) We need to keep looking up layers in the corner case, too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found