mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Reset ServicelevelPerf variable back to 0 if we are unable to calculate it each time... otherwise we will get previous values. (issue #10117 reported by noriyuki)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3627,8 +3627,7 @@ static int manager_queues_status( struct mansession *s, struct message *m )
|
|||||||
|
|
||||||
/* List queue properties */
|
/* List queue properties */
|
||||||
if (ast_strlen_zero(queuefilter) || !strcmp(q->name, queuefilter)) {
|
if (ast_strlen_zero(queuefilter) || !strcmp(q->name, queuefilter)) {
|
||||||
if(q->callscompleted > 0)
|
sl = ((q->callscompleted > 0) ? 100*((float)q->callscompletedinsl/(float)q->callscompleted) : 0);
|
||||||
sl = 100*((float)q->callscompletedinsl/(float)q->callscompleted);
|
|
||||||
ast_cli(s->fd, "Event: QueueParams\r\n"
|
ast_cli(s->fd, "Event: QueueParams\r\n"
|
||||||
"Queue: %s\r\n"
|
"Queue: %s\r\n"
|
||||||
"Max: %d\r\n"
|
"Max: %d\r\n"
|
||||||
|
Reference in New Issue
Block a user