diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-02-11 03:03:58 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-02-11 03:03:58 +0000 |
commit | 84ecef76b83c31566ba993f77eceb2fd669ffe07 (patch) | |
tree | 122b24d3d92dcd400f592925cc893d2c7df06b5d /apps/app_queue.c | |
parent | cd02fd27635bb9de4794e684f2daccb814e537c8 (diff) |
Fix improper indentation. Thanks again to snuffy for pointing it out.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index c89b2d629..bf0f13b38 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -579,16 +579,16 @@ static void set_queue_variables(struct queue_ent *qe) float sl = 0; if (qe->parent->setqueuevar) { - sl = 0; - if (qe->parent->callscompleted > 0) - sl = 100 * ((float) qe->parent->callscompletedinsl / (float) qe->parent->callscompleted); - - snprintf(interfacevar,sizeof(interfacevar), - "QUEUENAME=%s|QUEUEMAX=%d|QUEUESTRATEGY=%s|QUEUECALLS=%d|QUEUEHOLDTIME=%d|QUEUECOMPLETED=%d|QUEUEABANDONED=%d|QUEUESRVLEVEL=%d|QUEUESRVLEVELPERF=%2.1f", - qe->parent->name, qe->parent->maxlen, int2strat(qe->parent->strategy), qe->parent->count, qe->parent->holdtime, qe->parent->callscompleted, - qe->parent->callsabandoned, qe->parent->servicelevel, sl); + sl = 0; + if (qe->parent->callscompleted > 0) + sl = 100 * ((float) qe->parent->callscompletedinsl / (float) qe->parent->callscompleted); + + snprintf(interfacevar,sizeof(interfacevar), + "QUEUENAME=%s|QUEUEMAX=%d|QUEUESTRATEGY=%s|QUEUECALLS=%d|QUEUEHOLDTIME=%d|QUEUECOMPLETED=%d|QUEUEABANDONED=%d|QUEUESRVLEVEL=%d|QUEUESRVLEVELPERF=%2.1f", + qe->parent->name, qe->parent->maxlen, int2strat(qe->parent->strategy), qe->parent->count, qe->parent->holdtime, qe->parent->callscompleted, + qe->parent->callsabandoned, qe->parent->servicelevel, sl); - pbx_builtin_setvar(qe->chan, interfacevar); + pbx_builtin_setvar(qe->chan, interfacevar); } } |