]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID:1024580 Logically dead code, x will always be > 1
authorMichael Jerris <mike@jerris.com>
Fri, 16 May 2014 19:19:31 +0000 (19:19 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 16 May 2014 19:19:31 +0000 (19:19 +0000)
src/mod/applications/mod_commands/mod_commands.c

index 3acbca5b61f38ed418b112d7ab4ca479971d5a93..91ca71634401b6fc3749b50bf7fa73ca875221f2 100644 (file)
@@ -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: