]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Refactor out extraneous call to gettime
authorTravis Cross <tc@traviscross.com>
Mon, 17 Mar 2014 02:06:58 +0000 (02:06 +0000)
committerTravis Cross <tc@traviscross.com>
Sat, 19 Apr 2014 04:09:26 +0000 (04:09 +0000)
We were calling switch_epoch_time_now() twice for no good reason.

src/switch_scheduler.c

index de21c445b7180fd5c4374cac26a388761ef71d31..60a8ad45a6cb3da13b07ecc81c8b5083b2aa8ba2 100644 (file)
@@ -218,7 +218,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_add_task(time_t task_runtime,
        }
 
        container->func = func;
-       container->task.created = switch_epoch_time_now(NULL);
+       container->task.created = now;
        container->task.runtime = task_runtime;
        container->task.group = strdup(group ? group : "none");
        container->task.cmd_id = cmd_id;