diff options
| author | william <[email protected]> | 2014-01-10 16:13:54 -0800 |
|---|---|---|
| committer | william <[email protected]> | 2014-01-10 16:13:54 -0800 |
| commit | 9bee384b4130be5b7a1148235d39ad80935252be (patch) | |
| tree | 837746e49b6389781c65bcca957d45eb7bdb30cc | |
| parent | d40d1092a3436a7ef1faf6bb2a50f3f21a6a1c41 (diff) | |
fix add() in bench-heap.c
| -rw-r--r-- | bench-heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench-heap.c b/bench-heap.c index 216d88b..e132380 100644 --- a/bench-heap.c +++ b/bench-heap.c @@ -173,7 +173,7 @@ static void init(struct timeout *timeout, size_t count) { static void add(struct timeout *to, timeout_t expires) { min_heap_erase(&timeouts, to); - to->expires = expires; + to->expires = curtime + expires; if (0 != min_heap_push(&timeouts, to)) err(1, "realloc"); } /* add() */ |
