From c0f6f5a005a7fb52247bb9a1a15d2a7afb23757f Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Mon, 25 Jan 2021 11:48:19 +1000 Subject: [PATCH] * source-test : show source stats on exit --- src/source-test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/source-test.c b/src/source-test.c index e512fd6..a9d95d8 100644 --- a/src/source-test.c +++ b/src/source-test.c @@ -28,7 +28,7 @@ int main(int argc, char *argv[]) { f2b_config_t config; f2b_config_section_t *section = NULL; f2b_source_t *source = NULL; - char buf[1024] = ""; + char buf[4096] = ""; uint32_t stag; bool reset; @@ -79,5 +79,9 @@ int main(int argc, char *argv[]) { sleep(1); } + if (f2b_source_stats(source, buf, sizeof(buf))) { + printf("stats:\n" "%s\n", buf); + } + return EXIT_SUCCESS; }