From: Travis Cross Date: Mon, 17 Mar 2014 02:06:58 +0000 (+0000) Subject: Refactor out extraneous call to gettime X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a20da75ef9cbe835692c77f530e06c715732a4a;p=thirdparty%2Ffreeswitch.git Refactor out extraneous call to gettime We were calling switch_epoch_time_now() twice for no good reason. --- diff --git a/src/switch_scheduler.c b/src/switch_scheduler.c index de21c445b7..60a8ad45a6 100644 --- a/src/switch_scheduler.c +++ b/src/switch_scheduler.c @@ -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;