Commit 60ea90a3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Increase jitter in schedule_flush_now.

parent 6a3be6d1
...@@ -385,7 +385,7 @@ void ...@@ -385,7 +385,7 @@ void
schedule_flush_now(struct network *net) schedule_flush_now(struct network *net)
{ {
/* Almost now */ /* Almost now */
int msecs = 5 + random() % 5; int msecs = 5 + random() % 10;
if(net->flush_timeout.tv_sec != 0 && if(net->flush_timeout.tv_sec != 0 &&
timeval_minus_msec(&net->flush_timeout, &now) < msecs) timeval_minus_msec(&net->flush_timeout, &now) < msecs)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment