diff options
author | David Lamparter <equinox@diac24.net> | 2019-12-11 12:34:56 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-12-11 12:34:56 +0100 |
commit | 9e89da8c5572fa8589a89e1d43cac0fcd9248373 (patch) | |
tree | 5f916a815c789fafc08c7f1e87c55893e6d1858b /bgpd/bgp_bmp.c | |
parent | lib/resolver: support/bypass IP literals (diff) | |
download | frr-9e89da8c5572fa8589a89e1d43cac0fcd9248373.tar.xz frr-9e89da8c5572fa8589a89e1d43cac0fcd9248373.zip |
bgpd/bmp: actually print uptime
Forgot to replace the stub here when finishing up...
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'bgpd/bgp_bmp.c')
-rw-r--r-- | bgpd/bgp_bmp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c index b376d51a1..b57af89ee 100644 --- a/bgpd/bgp_bmp.c +++ b/bgpd/bgp_bmp.c @@ -2133,12 +2133,16 @@ DEFPY(show_bmp, frr_each (bmp_session, &bt->sessions, bmp) { uint64_t total; + char uptime[BGP_UPTIME_LEN]; size_t q, kq; pullwr_stats(bmp->pullwr, &total, &q, &kq); - ttable_add_row(tt, "%s|-|%Lu|%Lu|%Lu|%Lu|%zu|%zu", - bmp->remote, + peer_uptime(bmp->t_up.tv_sec, uptime, + sizeof(uptime), false, NULL); + + ttable_add_row(tt, "%s|%s|%Lu|%Lu|%Lu|%Lu|%zu|%zu", + bmp->remote, uptime, bmp->cnt_update, bmp->cnt_mirror, bmp->cnt_mirror_overruns, |