diff options
author | Joshua Colp <jcolp@digium.com> | 2007-07-05 13:23:49 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-07-05 13:23:49 +0000 |
commit | 758873a06832c99beee7a91e9ee4824a83684cb3 (patch) | |
tree | 6b550201c8ac5815bf11620011ecf96473f5249c /apps | |
parent | 090cbd294589faa6471d60e3d6cf8387c11d9375 (diff) |
Merged revisions 73316 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r73316 | file | 2007-07-05 10:22:13 -0300 (Thu, 05 Jul 2007) | 10 lines
Merged revisions 73315 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r73315 | file | 2007-07-05 10:19:17 -0300 (Thu, 05 Jul 2007) | 2 lines
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/trunk@73317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 425f3c64a..32091e92a 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4351,8 +4351,7 @@ static int manager_queues_status(struct mansession *s, const struct message *m) /* List queue properties */ if (ast_strlen_zero(queuefilter) || !strcmp(q->name, queuefilter)) { - if (q->callscompleted > 0) - sl = 100 * ((float) q->callscompletedinsl / (float) q->callscompleted); + sl = ((q->callscompleted > 0) ? 100 * ((float)q->callscompletedinsl / (float)q->callscompleted) : 0); astman_append(s, "Event: QueueParams\r\n" "Queue: %s\r\n" "Max: %d\r\n" |