summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_spf.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-01-18 01:30:43 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-23 18:26:32 +0100
commitcf672a865428b5e55844b6d2e01ca9d3bd4afe6b (patch)
treefd47b5006fa2f7cc6499e6d84f800ccfb74d77dc /ospf6d/ospf6_spf.c
parent*: remove quagga_gettime() return value checks (diff)
downloadfrr-cf672a865428b5e55844b6d2e01ca9d3bd4afe6b.tar.xz
frr-cf672a865428b5e55844b6d2e01ca9d3bd4afe6b.zip
*: use monotime()
This is largely a bulk-replace made with coccinelle. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_spf.c')
-rw-r--r--ospf6d/ospf6_spf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c
index 901444637..333ce5588 100644
--- a/ospf6d/ospf6_spf.c
+++ b/ospf6d/ospf6_spf.c
@@ -603,7 +603,7 @@ ospf6_spf_calculation_thread (struct thread *t)
ospf6->t_spf_calc = NULL;
/* execute SPF calculation */
- quagga_gettime (QUAGGA_CLK_MONOTONIC, &start);
+ monotime(&start);
if (ospf6_is_router_abr (ospf6))
ospf6_abr_range_reset_cost (ospf6);
@@ -644,7 +644,7 @@ ospf6_spf_calculation_thread (struct thread *t)
if (ospf6_is_router_abr (ospf6))
ospf6_abr_defaults_to_stub (ospf6);
- quagga_gettime (QUAGGA_CLK_MONOTONIC, &end);
+ monotime(&end);
timersub (&end, &start, &runtime);
ospf6->ts_spf_duration = runtime;