FS-7820 using a more appropriate function for printing diags

This commit is contained in:
William King 2015-10-07 10:35:28 -07:00
parent 444f81ce9f
commit 4845587be9
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ int main () {
micro_total = end_ts - start_ts;
micro_per = micro_total / (double) loops;
rate_per_sec = 1000000 / micro_per;
note("switch_event Total %ldus / %d loops, %.2f us per loop, %.0f loops per second\n",
diag("switch_event Total %ldus / %d loops, %.2f us per loop, %.0f loops per second\n",
micro_total, loops, micro_per, rate_per_sec);
switch_core_destroy();

View File

@ -132,7 +132,7 @@ int main () {
micro_total = end_ts - start_ts;
micro_per = micro_total / (double) loops;
rate_per_sec = 1000000 / micro_per;
note("switch_hash Total %ldus / %d loops, %.2f us per loop, %.0f loops per second\n",
diag("switch_hash Total %ldus / %d loops, %.2f us per loop, %.0f loops per second\n",
micro_total, loops, micro_per, rate_per_sec);
switch_core_destroy();