|
@@ -238,8 +238,8 @@ uint64_t bch_next_delay(struct bch_ratelimit *d, uint64_t done)
|
|
|
* don't let us sleep more than 2.5 seconds (so we can notice/respond
|
|
|
* if the control system tells us to speed up!).
|
|
|
*/
|
|
|
- if (time_before64(now + NSEC_PER_SEC * 5 / 2, d->next))
|
|
|
- d->next = now + NSEC_PER_SEC * 5 / 2;
|
|
|
+ if (time_before64(now + NSEC_PER_SEC * 5LLU / 2LLU, d->next))
|
|
|
+ d->next = now + NSEC_PER_SEC * 5LLU / 2LLU;
|
|
|
|
|
|
if (time_after64(now - NSEC_PER_SEC * 2, d->next))
|
|
|
d->next = now - NSEC_PER_SEC * 2;
|