Changeset 575:66f188b3ca84 in freeDiameter for extensions/test_app/test_app.c
- Timestamp:
- Oct 8, 2010, 4:02:48 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_app/test_app.c
r572 r575 59 59 ta_conf->dest_host = NULL; 60 60 ta_conf->signal = TEST_APP_DEFAULT_SIGNAL; 61 ta_conf->bench_concur = 100; 62 ta_conf->bench_duration = 10; 61 63 62 64 /* Initialize the mutex */ … … 82 84 } 83 85 84 /* Function to display statistics every 10 seconds*/86 /* Function to display statistics periodically */ 85 87 static void * ta_stats(void * arg) { 86 88 … … 93 95 /* Now, loop until canceled */ 94 96 while (1) { 95 /* Display statistics every 30seconds */96 sleep( 30);97 /* Display statistics every XX seconds */ 98 sleep(ta_conf->bench_duration * 3); 97 99 98 100 /* Now, get the current stats */ … … 117 119 118 120 if (ta_conf->mode & MODE_SERV) { 119 fd_log_debug( " Server: %llu message sechoed\n", copy.nb_echoed);121 fd_log_debug( " Server: %llu message(s) echoed\n", copy.nb_echoed); 120 122 } 121 123 if (ta_conf->mode & MODE_CLI) { 122 124 fd_log_debug( " Client:\n"); 123 fd_log_debug( " %llu message ssent\n", copy.nb_sent);124 fd_log_debug( " %llu error sreceived\n", copy.nb_errs);125 fd_log_debug( " %llu answer sreceived\n", copy.nb_recv);125 fd_log_debug( " %llu message(s) sent\n", copy.nb_sent); 126 fd_log_debug( " %llu error(s) received\n", copy.nb_errs); 127 fd_log_debug( " %llu answer(s) received\n", copy.nb_recv); 126 128 fd_log_debug( " fastest: %ld.%06ld sec.\n", copy.shortest / 1000000, copy.shortest % 1000000); 127 129 fd_log_debug( " slowest: %ld.%06ld sec.\n", copy.longest / 1000000, copy.longest % 1000000);
Note: See TracChangeset
for help on using the changeset viewer.