diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-06-13 16:52:21 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-07 13:49:27 +0100 |
commit | d3fa9e84e98d7b8c726f5e35d6a359971eb98f94 (patch) | |
tree | 686c3291ab9833972c06834f63e742272e904c0e /proto/rpki | |
parent | 212eda07c4e481e3341ede37b0877fa22bc042a4 (diff) |
Timers: Show sub-second times in some protocol outputs
Diffstat (limited to 'proto/rpki')
-rw-r--r-- | proto/rpki/rpki.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/rpki/rpki.c b/proto/rpki/rpki.c index a331e45e..7930363f 100644 --- a/proto/rpki/rpki.c +++ b/proto/rpki/rpki.c @@ -790,9 +790,9 @@ static void rpki_show_proto_info_timer(const char *name, uint num, timer *t) { if (tm_active(t)) - cli_msg(-1006, " %-17s %us (remains %ds)", name, num, (int) tm_remains(t)); + cli_msg(-1006, " %-16s: %t/%u", name, tm2_remains(t), num); else - cli_msg(-1006, " %-17s ---", name); + cli_msg(-1006, " %-16s: ---", name); } static void @@ -836,9 +836,9 @@ rpki_show_proto_info(struct proto *P) cli_msg(-1006, " Last update: ---"); } - rpki_show_proto_info_timer("Refresh interval:", cache->refresh_interval, cache->refresh_timer); - rpki_show_proto_info_timer("Retry interval:", cache->retry_interval, cache->retry_timer); - rpki_show_proto_info_timer("Expire interval:", cache->expire_interval, cache->expire_timer); + rpki_show_proto_info_timer("Refresh timer", cache->refresh_interval, cache->refresh_timer); + rpki_show_proto_info_timer("Retry timer", cache->retry_interval, cache->retry_timer); + rpki_show_proto_info_timer("Expire timer", cache->expire_interval, cache->expire_timer); if (p->roa4_channel) channel_show_info(p->roa4_channel); |