CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/05/21 08:48:58

Modified files:
        usr.sbin/bgpctl: bgpctl.c output.c 

Log message:
For bgpctl show mrt detail print the last change time as an ISO format time.

If abs_time is set then switch fmt_monotime() to absolute timestamps.
This uses monotime_to_time, gmtime and strftime("%FT%TZ") to get an
ISO format timestamp string.

While there also adjust get_rel_monotime() to be more like
monotime_to_time() and stop treating negative numbers as error.
In fmt_monotime() check the monotime against 0 to print 'Never' for timers
that are not running.

With this bgpctl show mrt detail prints:
Last update: 2019-05-08T20:03:06Z

OK tb@

Reply via email to