]> 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>
Mon, 17 Mar 2014 17:47:51 +0000 (17:47 +0000)
We were calling switch_epoch_time_now() twice for no good reason.

src/switch_scheduler.c

index 5fa092cc75b92fcaa8c05560011b00118ede96b7..a14c91e43282ab2315864dd8de6dbc66953f4b50 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;