From 976304e2d745787a11d40773e5e89bc1f5ed441e Mon Sep 17 00:00:00 2001 From: markster Date: Wed, 10 Sep 2003 05:24:49 +0000 Subject: Fix small logic errors (bug #242) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1494 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/app_queue.c b/apps/app_queue.c index 68d883c10..60afb6d23 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1383,7 +1383,7 @@ static int queues_show(int fd, int argc, char **argv) pos = 1; ast_cli(fd, " Callers: \n"); for (qe = q->head; qe; qe = qe->next) - ast_cli(fd, " %d. %s (wait: %d:%02.2d)\n", pos++, qe->chan->name, + ast_cli(fd, " %d. %s (wait: %d:%2.2d)\n", pos++, qe->chan->name, (now - qe->start) / 60, (now - qe->start) % 60); } else ast_cli(fd, " No Callers\n"); @@ -1441,7 +1441,7 @@ static int manager_queues_status( struct mansession *s, struct message *m ) "Wait: %ld\r\n" "%s" "\r\n", - q->name, pos++, qe->chan->name, (qe->chan->callerid ? qe->chan->callerid : ""), now - qe->start), idText; + q->name, pos++, qe->chan->name, (qe->chan->callerid ? qe->chan->callerid : ""), (long)(now - qe->start), idText); ast_mutex_unlock(&q->lock); q = q->next; } -- cgit v1.2.3