mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Makes date/time formats configurable.
This commit is contained in:
@@ -18,12 +18,12 @@ cmd_show_status(void)
|
||||
byte tim[TM_DATETIME_BUFFER_SIZE];
|
||||
|
||||
cli_msg(-1000, "BIRD " BIRD_VERSION);
|
||||
tm_format_datetime(tim, now);
|
||||
tm_format_datetime(tim, &config->tf_base, now);
|
||||
cli_msg(-1011, "Router ID is %R", config->router_id);
|
||||
cli_msg(-1011, "Current server time is %s", tim);
|
||||
tm_format_datetime(tim, boot_time);
|
||||
tm_format_datetime(tim, &config->tf_base, boot_time);
|
||||
cli_msg(-1011, "Last reboot on %s", tim);
|
||||
tm_format_datetime(tim, config->load_time);
|
||||
tm_format_datetime(tim, &config->tf_base, config->load_time);
|
||||
cli_msg(-1011, "Last reconfiguration on %s", tim);
|
||||
if (shutting_down)
|
||||
cli_msg(13, "Shutdown in progress");
|
||||
|
||||
Reference in New Issue
Block a user