summaryrefslogtreecommitdiff
path: root/lib/spf_backoff.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2018-03-10 04:14:17 +0000
committervivek <vivek@cumulusnetworks.com>2018-03-10 04:14:17 +0000
commit7d39cd191c885608731a82a2cedf2b8953d3bf1c (patch)
tree6f3003ab8d9b0284d86637849a2d5473ae878005 /lib/spf_backoff.c
parentd0be47e8e152e82270770bdb77aea620ea9b3ab2 (diff)
parent58e7db106d5907cb129fcc316f02ce0bf34e3885 (diff)
Merge branch 'master' of https://github.com/frrouting/frr into pmsi-parse-display
Conflicts: bgpd/bgp_attr.c
Diffstat (limited to 'lib/spf_backoff.c')
-rw-r--r--lib/spf_backoff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spf_backoff.c b/lib/spf_backoff.c
index d7907fafdf..c420c25f04 100644
--- a/lib/spf_backoff.c
+++ b/lib/spf_backoff.c
@@ -227,7 +227,8 @@ void spf_backoff_show(struct spf_backoff *backoff, struct vty *vty,
struct timeval remain =
thread_timer_remain(backoff->t_holddown);
vty_out(vty, "%s Still runs for %lld msec\n",
- prefix, (long long)remain.tv_sec * 1000
+ prefix,
+ (long long)remain.tv_sec * 1000
+ remain.tv_usec / 1000);
} else {
vty_out(vty, "%s Inactive\n", prefix);
@@ -239,7 +240,8 @@ void spf_backoff_show(struct spf_backoff *backoff, struct vty *vty,
struct timeval remain =
thread_timer_remain(backoff->t_timetolearn);
vty_out(vty, "%s Still runs for %lld msec\n",
- prefix, (long long)remain.tv_sec * 1000
+ prefix,
+ (long long)remain.tv_sec * 1000
+ remain.tv_usec / 1000);
} else {
vty_out(vty, "%s Inactive\n", prefix);