Commit 9887f30c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Update dest->time unconditionally in update_destination.

parent 2bddb44e
...@@ -62,9 +62,9 @@ update_destination(struct destination *dest, ...@@ -62,9 +62,9 @@ update_destination(struct destination *dest,
{ {
if(seqno_compare(dest->seqno, seqno) < 0 || if(seqno_compare(dest->seqno, seqno) < 0 ||
(dest->seqno == seqno && dest->metric > metric)) { (dest->seqno == seqno && dest->metric > metric)) {
dest->time = now.tv_sec;
dest->seqno = seqno; dest->seqno = seqno;
dest->metric = metric; dest->metric = metric;
} }
dest->time = now.tv_sec;
} }
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