提交 c006e97a authored 作者: Travis Cross's avatar Travis Cross

Refactor out extraneous call to gettime

We were calling switch_epoch_time_now() twice for no good reason.
上级 340b697e
...@@ -218,7 +218,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_add_task(time_t task_runtime, ...@@ -218,7 +218,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_add_task(time_t task_runtime,
} }
container->func = func; container->func = func;
container->task.created = switch_epoch_time_now(NULL); container->task.created = now;
container->task.runtime = task_runtime; container->task.runtime = task_runtime;
container->task.group = strdup(group ? group : "none"); container->task.group = strdup(group ? group : "none");
container->task.cmd_id = cmd_id; container->task.cmd_id = cmd_id;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论