Commit f439ef43 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Deal with expired sources in update_source.

parent 3cbf36f5
......@@ -98,7 +98,8 @@ update_source(struct source *src,
if(metric >= INFINITY)
return;
if(seqno_compare(src->seqno, seqno) < 0 ||
if(src->time < now.tv_sec - 200 ||
seqno_compare(src->seqno, seqno) < 0 ||
(src->seqno == seqno && src->metric > metric)) {
src->seqno = seqno;
src->metric = metric;
......
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