Fix improper indentation. Thanks again to snuffy for pointing it out.
authorMark Michelson <mmichelson@digium.com>
Mon, 11 Feb 2008 03:03:58 +0000 (03:03 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 11 Feb 2008 03:03:58 +0000 (03:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103284 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index c89b2d6..bf0f13b 100644 (file)
@@ -579,16 +579,16 @@ static void set_queue_variables(struct queue_ent *qe)
        float sl = 0;
         
        if (qe->parent->setqueuevar) {
        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); 
        }
 }
 
        }
 }