Commit 59dd568f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Record the time of the last full update in interface structure.

parent c258306b
......@@ -86,6 +86,7 @@ struct interface {
time_t bucket_time;
unsigned int bucket;
time_t activity_time;
time_t last_update_time;
unsigned short hello_seqno;
unsigned hello_interval;
unsigned update_interval;
......
......@@ -1132,6 +1132,7 @@ send_update(struct interface *ifp, int urgent,
}
}
set_timeout(&ifp->update_timeout, ifp->update_interval);
ifp->last_update_time = now.tv_sec;
}
schedule_update_flush(ifp, urgent);
}
......
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