mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
FS-11615 fix compiler warning
This commit is contained in:
1 parent
139aac04dd
commit
d76cac15fc
3 files changed
+10
-6
No files matched your search
@@ -27,7 +27,7 @@ FST_TEST_BEGIN(benchmark)
|
||||
int rc = 0, loops = 10, x = 0;
|
||||
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
||||
char **index = NULL;
|
||||
unsigned long long micro_total = 0;
|
||||
uint64_t micro_total = 0;
|
||||
double micro_per = 0;
|
||||
double rate_per_sec = 0;
|
||||
|
||||
@@ -63,7 +63,7 @@ FST_TEST_BEGIN(benchmark)
|
||||
micro_total = small_end_ts - small_start_ts;
|
||||
micro_per = micro_total / (double) loops;
|
||||
rate_per_sec = 1000000 / micro_per;
|
||||
printf("switch_event add_header: Total %ldus / %ld loops, %.2f us per loop, %.0f loops per second\n",
|
||||
printf("switch_event add_header: Total %" SWITCH_UINT64_T_FMT "us / %d loops, %.2f us per loop, %.0f loops per second\n",
|
||||
micro_total, loops, micro_per, rate_per_sec);
|
||||
#endif
|
||||
|
||||
@@ -84,7 +84,7 @@ FST_TEST_BEGIN(benchmark)
|
||||
micro_total = small_end_ts - small_start_ts;
|
||||
micro_per = micro_total / (double) loops;
|
||||
rate_per_sec = 1000000 / micro_per;
|
||||
printf("switch_event get_header: Total %ldus / %ld loops, %.2f us per loop, %.0f loops per second\n",
|
||||
printf("switch_event get_header: Total %" SWITCH_UINT64_T_FMT "us / %d loops, %.2f us per loop, %.0f loops per second\n",
|
||||
micro_total, loops, micro_per, rate_per_sec);
|
||||
#endif
|
||||
|
||||
@@ -101,7 +101,7 @@ FST_TEST_BEGIN(benchmark)
|
||||
micro_total = end_ts - start_ts;
|
||||
micro_per = micro_total / (double) loops;
|
||||
rate_per_sec = 1000000 / micro_per;
|
||||
printf("switch_event Total %ldus / %d loops, %.2f us per loop, %.0f loops per second\n",
|
||||
printf("switch_event Total %" SWITCH_UINT64_T_FMT "us / %d loops, %.2f us per loop, %.0f loops per second\n",
|
||||
micro_total, loops, micro_per, rate_per_sec);
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user