summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_nsm.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-01-17 22:46:07 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-23 18:26:32 +0100
commit6ced0e7f10d850d51f21200f5d3243cc1b90c453 (patch)
treeea0ad88f126401a1d5b01dd0f6f12bd10f627374 /ospfd/ospf_nsm.c
parentospf6d: time: remove unused/duplicate helpers (diff)
downloadfrr-6ced0e7f10d850d51f21200f5d3243cc1b90c453.tar.xz
frr-6ced0e7f10d850d51f21200f5d3243cc1b90c453.zip
lib: time: remove recent_relative_time()
Replace with monotime() [which is not cached]. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_nsm.c')
-rw-r--r--ospfd/ospf_nsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_nsm.c b/ospfd/ospf_nsm.c
index 17cc1f66c..ccb82bf8f 100644
--- a/ospfd/ospf_nsm.c
+++ b/ospfd/ospf_nsm.c
@@ -630,10 +630,10 @@ nsm_notice_state_change (struct ospf_neighbor *nbr, int next_state, int event)
/* Advance in NSM */
if (next_state > nbr->state)
- nbr->ts_last_progress = recent_relative_time ();
+ monotime(&nbr->ts_last_progress);
else /* regression in NSM */
{
- nbr->ts_last_regress = recent_relative_time ();
+ monotime(&nbr->ts_last_regress);
nbr->last_regress_str = ospf_nsm_event_str [event];
}