summaryrefslogtreecommitdiff
path: root/ospfd/ospf_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_dump.c')
-rw-r--r--ospfd/ospf_dump.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c
index 4e9797184d..6e9e59f9b7 100644
--- a/ospfd/ospf_dump.c
+++ b/ospfd/ospf_dump.c
@@ -22,6 +22,7 @@
#include <zebra.h>
+#include "monotime.h"
#include "linklist.h"
#include "thread.h"
#include "prefix.h"
@@ -317,8 +318,8 @@ ospf_timer_dump (struct thread *t, char *buf, size_t size)
struct timeval result;
if (!t)
return "inactive";
-
- result = tv_sub (t->u.sands, recent_relative_time());
+
+ monotime_until (&t->u.sands, &result);
return ospf_timeval_dump (&result, buf, size);
}