aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-17 15:56:55 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-17 15:56:55 +0000
commit834e1edcecf6634dac83019959fe72e0ac836388 (patch)
tree7d4b775e3d354358e2ab468187c2bc0bca07f054 /apps/app_queue.c
parentbdd0922540d84ba739c482f763c5e6cc314fac2f (diff)
davidw pointed out that the holdtime calculation used by
app_queue does not use "boxcar" filtering as the comments say. The term "boxcar" means that the number of samples used to calculate stays constant, with new samples replacing the oldest ones. The queue holdtime calculation uses all holdtime samples collected since the queue was loaded, so the comment has been changed to be accurate. (closes issue #12781) Reported by: davidw git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123274 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 01fdcf3aa..688ffed13 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -394,7 +394,7 @@ struct call_queue {
int announcefrequency; /*!< How often to announce their position */
int periodicannouncefrequency; /*!< How often to play periodic announcement */
int roundingseconds; /*!< How many seconds do we round to? */
- int holdtime; /*!< Current avg holdtime, based on recursive boxcar filter */
+ int holdtime; /*!< Current avg holdtime, based on an exponential average */
int callscompleted; /*!< Number of queue calls completed */
int callsabandoned; /*!< Number of queue calls abandoned */
int servicelevel; /*!< seconds setting for servicelevel*/
@@ -1627,7 +1627,7 @@ static void recalc_holdtime(struct queue_ent *qe, int newholdtime)
{
int oldvalue;
- /* Calculate holdtime using a recursive boxcar filter */
+ /* Calculate holdtime using an exponential average */
/* Thanks to SRT for this contribution */
/* 2^2 (4) is the filter coefficient; a higher exponent would give old entries more weight */