Commit f1f3076c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Reduce urgent jitter to 500 ms.

parent 598e58ce
...@@ -800,6 +800,6 @@ update_jitter(struct network *net, int urgent) ...@@ -800,6 +800,6 @@ update_jitter(struct network *net, int urgent)
{ {
unsigned interval = net->hello_interval * 1000; unsigned interval = net->hello_interval * 1000;
if(urgent) if(urgent)
interval = MIN(interval, 1000); interval = MIN(interval, 500);
return (interval / 2 + random() % interval); return (interval / 2 + random() % interval);
} }
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