Refactor out extraneous call to gettime

We were calling switch_epoch_time_now() twice for no good reason.
This commit is contained in:
Travis Cross 2014-03-17 02:06:58 +00:00
parent 340b697e1b
commit c006e97acc
1 changed files with 1 additions and 1 deletions

View 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;