<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6257">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_queue: Fix initial hold time queue statistic<br><br>Fixed to use correct initial value and fixed to use the<br>correct queue info to check the first value.<br><br>ASTERISK-27204<br><br>Change-Id: Ia9e36c828e566e1cc25c66f73307566e4acb8e73<br>---<br>M apps/app_queue.c<br>1 file changed, 7 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/apps/app_queue.c b/apps/app_queue.c<br>index 004d93a..b139ef7 100644<br>--- a/apps/app_queue.c<br>+++ b/apps/app_queue.c<br>@@ -4072,8 +4072,12 @@<br> /* 2^2 (4) is the filter coefficient; a higher exponent would give old entries more weight */<br> <br> ao2_lock(qe->parent);<br>- oldvalue = qe->parent->holdtime;<br>- qe->parent->holdtime = (((oldvalue << 2) - oldvalue) + newholdtime) >> 2;<br>+ if ((qe->parent->callscompleted + qe->parent->callsabandoned) == 0) {<br>+ qe->parent->holdtime = newholdtime;<br>+ } else {<br>+ oldvalue = qe->parent->holdtime;<br>+ qe->parent->holdtime = (((oldvalue << 2) - oldvalue) + newholdtime) >> 2;<br>+ }<br> ao2_unlock(qe->parent);<br> }<br> <br>@@ -5651,7 +5655,7 @@<br> if (callcompletedinsl) {<br> q->callscompletedinsl++;<br> }<br>- if (q->callscompletedinsl == 1) {<br>+ if (q->callscompleted == 1) {<br> q->talktime = newtalktime;<br> } else {<br> /* Calculate talktime using the same exponential average as holdtime code */<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6257">change 6257</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6257"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ia9e36c828e566e1cc25c66f73307566e4acb8e73 </div>
<div style="display:none"> Gerrit-Change-Number: 6257 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: sungtae kim <pchero21@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>