Browse Source

* source-test : show source stats on exit

master
Alex 'AdUser' Z 4 years ago
parent
commit
c0f6f5a005
  1. 6
      src/source-test.c

6
src/source-test.c

@ -28,7 +28,7 @@ int main(int argc, char *argv[]) {
f2b_config_t config; f2b_config_t config;
f2b_config_section_t *section = NULL; f2b_config_section_t *section = NULL;
f2b_source_t *source = NULL; f2b_source_t *source = NULL;
char buf[1024] = ""; char buf[4096] = "";
uint32_t stag; uint32_t stag;
bool reset; bool reset;
@ -79,5 +79,9 @@ int main(int argc, char *argv[]) {
sleep(1); sleep(1);
} }
if (f2b_source_stats(source, buf, sizeof(buf))) {
printf("stats:\n" "%s\n", buf);
}
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

Loading…
Cancel
Save