From 8a20da75ef9cbe835692c77f530e06c715732a4a Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Mon, 17 Mar 2014 02:06:58 +0000 Subject: [PATCH] Refactor out extraneous call to gettime We were calling switch_epoch_time_now() twice for no good reason. --- src/switch_scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;