提交 4845587b authored 作者: William King's avatar William King

FS-7820 using a more appropriate function for printing diags

上级 444f81ce
......@@ -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();
......
......@@ -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();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论