This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/26173 ) Change subject: stats: cosmetic: print 'stats interval' before the reporters ...................................................................... stats: cosmetic: print 'stats interval' before the reporters It's better to have the common parameters printed first. Change-Id: Ifb401d4d363fb70e89960ca739baba5ee55eefe8 Related: SYS#5713 --- M src/vty/stats_vty.c M tests/stats/stats_vty_test.vty 2 files changed, 3 insertions(+), 3 deletions(-) Approvals: osmith: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/vty/stats_vty.c b/src/vty/stats_vty.c index a4fc6ea..48e4f1c 100644 --- a/src/vty/stats_vty.c +++ b/src/vty/stats_vty.c @@ -680,12 +680,12 @@ { 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; } diff --git a/tests/stats/stats_vty_test.vty b/tests/stats/stats_vty_test.vty index 017b188..7c01d3f 100644 --- a/tests/stats/stats_vty_test.vty +++ b/tests/stats/stats_vty_test.vty @@ -34,11 +34,11 @@ 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 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/26173 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ifb401d4d363fb70e89960ca739baba5ee55eefe8 Gerrit-Change-Number: 26173 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: osmith <osmith at sysmocom.de> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211109/2a04ce0e/attachment.htm>