aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-13 15:37:56 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-13 15:37:56 +0000
commit637cad14f00b1bdb7acd0fbc057501885c54cc2c (patch)
treeade1d671dc600ac31f7b529a507a979a205491c7 /apps
parentde26b25c7f4f52c2964d3a3a5ae26482d52004a3 (diff)
only compare the queue entry's max penalty to the member's penalty when the queue entry actually has a non-zero penalty
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37515 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 8c6b132d2..8d55ac8f6 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2190,7 +2190,7 @@ static int update_queue(struct call_queue *q, struct member *member)
static int calc_metric(struct call_queue *q, struct member *mem, int pos, struct queue_ent *qe, struct callattempt *tmp)
{
- if (mem->penalty > qe->max_penalty)
+ if (qe->max_penalty && (mem->penalty > qe->max_penalty))
return -1;
switch (q->strategy) {