From c1f7887039b91c20d196d548623e5c143dd96783 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 16 May 2014 19:19:31 +0000 Subject: [PATCH] CID:1024580 Logically dead code, x will always be > 1 --- src/mod/applications/mod_commands/mod_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 3acbca5b61..91ca716344 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -849,7 +849,7 @@ SWITCH_STANDARD_API(timer_test_function) switch_yield(250000); - stream->write_function(stream, "Avg: %0.3fms Total Time: %0.3fms\n", (float) ((float) (total / (x > 1 ? x - 1 : 1)) / 1000), + stream->write_function(stream, "Avg: %0.3fms Total Time: %0.3fms\n", (float) ((float) (total / (x - 1)) / 1000), (float) ((float) (end - start) / 1000)); end: