Fix small logic errors (bug #242)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-09-10 05:24:49 +00:00
parent c874416036
commit ac19ba51bd
6 changed files with 18 additions and 11 deletions

View File

@@ -2,6 +2,8 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <asterisk/lock.h>
#include <asterisk/channel.h>

View File

@@ -582,7 +582,7 @@ static int handle_parkedcalls(int fd, int argc, char *argv[])
cur=parkinglot;
while(cur) {
ast_cli(fd, "%4d %25s (%-15s %-12s %-4d) %6ds\n"
ast_cli(fd, "%4d %25s (%-15s %-12s %-4d) %6lds\n"
,cur->parkingnum, cur->chan->name, cur->context, cur->exten
,cur->priority, cur->start.tv_sec + (cur->parkingtime/1000) - time(NULL));