Commit 742ade18 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Relax update moderation.

parent 1a661eb9
...@@ -771,8 +771,9 @@ send_update(struct network *net, int urgent, ...@@ -771,8 +771,9 @@ send_update(struct network *net, int urgent,
buffer_update(net, prefix, plen); buffer_update(net, prefix, plen);
} else { } else {
send_self_update(net, 0); send_self_update(net, 0);
/* Avoid sending full route dumps more than once per second */ /* Don't send full route dumps more than ten times per second */
if(now.tv_sec - net->update_time.tv_sec < 1) if(net->update_time.tv_sec > 0 &&
timeval_minus_msec(&now, &net->update_time) < 100)
return; return;
debugf("Sending update to %s for any.\n", net->ifname); debugf("Sending update to %s for any.\n", net->ifname);
for(i = 0; i < numroutes; i++) for(i = 0; i < numroutes; i++)
......
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