diff --git a/nest/proto.c b/nest/proto.c index 9f0311f..da64a7f 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -730,12 +730,12 @@ proto_state_name(struct proto *p) static void proto_do_show(struct proto *p, int verbose) { - byte buf[256], reltime[TM_RELTIME_BUFFER_SIZE]; + byte buf[256], reltime[TM_DATETIME_BUFFER_SIZE]; buf[0] = 0; if (p->proto->get_status) p->proto->get_status(p, buf); - tm_format_reltime(reltime, p->last_state_change); + tm_format_datetime(reltime, p->last_state_change); cli_msg(-1002, "%-8s %-8s %-8s %-5s %-5s %s", p->name, p->proto->name, diff --git a/nest/rt-table.c b/nest/rt-table.c index df2834a..3927c94 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1114,11 +1114,11 @@ static void rt_show_rte(struct cli *c, byte *ia, rte *e, struct rt_show_data *d, ea_list *tmpa) { byte via[STD_ADDRESS_P_LENGTH+32], from[STD_ADDRESS_P_LENGTH+6]; - byte tm[TM_RELTIME_BUFFER_SIZE], info[256]; + byte tm[TM_DATETIME_BUFFER_SIZE], info[256]; rta *a = e->attrs; rt_format_via(e, via); - tm_format_reltime(tm, e->lastmod); + tm_format_datetime(tm, e->lastmod); if (ipa_nonzero(a->from) && !ipa_equal(a->from, a->gw)) bsprintf(from, " from %I", a->from); else