mirror of https://gerrit.osmocom.org/libosmocore
stats: cosmetic: print 'stats interval' before the reporters
It's better to have the common parameters printed first. Change-Id: Ifb401d4d363fb70e89960ca739baba5ee55eefe8 Related: SYS#5713
This commit is contained in:
parent
bfc8377398
commit
4f1c4e3027
|
@ -680,12 +680,12 @@ static int config_write_stats(struct vty *vty)
|
|||
{
|
||||
struct osmo_stats_reporter *srep;
|
||||
|
||||
vty_out(vty, "stats interval %d%s", osmo_stats_config->interval, VTY_NEWLINE);
|
||||
|
||||
/* Loop through all reporters */
|
||||
llist_for_each_entry(srep, &osmo_stats_reporter_list, list)
|
||||
config_write_stats_reporter(vty, srep);
|
||||
|
||||
vty_out(vty, "stats interval %d%s", osmo_stats_config->interval, VTY_NEWLINE);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,11 +34,11 @@ stats_vty_test(config-stats)# list
|
|||
|
||||
stats_vty_test(config-stats)# show running-config
|
||||
...
|
||||
stats interval 5
|
||||
stats reporter statsd
|
||||
disable
|
||||
level global
|
||||
no prefix
|
||||
stats interval 5
|
||||
...
|
||||
|
||||
stats_vty_test(config-stats)# level subscriber
|
||||
|
|
Loading…
Reference in New Issue