From: Michael Jerris Date: Fri, 16 May 2014 19:19:31 +0000 (+0000) Subject: CID:1024580 Logically dead code, x will always be > 1 X-Git-Tag: v1.4.4~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1f7887039b91c20d196d548623e5c143dd96783;p=thirdparty%2Ffreeswitch.git CID:1024580 Logically dead code, x will always be > 1 --- 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: