[svn-commits] trunk r37515 - /trunk/apps/app_queue.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jul 13 08:37:57 MST 2006


Author: kpfleming
Date: Thu Jul 13 10:37:56 2006
New Revision: 37515

URL: http://svn.digium.com/view/asterisk?rev=37515&view=rev
Log:
only compare the queue entry's max penalty to the member's penalty when the queue entry actually has a non-zero penalty

Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?rev=37515&r1=37514&r2=37515&view=diff
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Thu Jul 13 10:37:56 2006
@@ -2190,7 +2190,7 @@
 
 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) {



More information about the svn-commits mailing list