@ -4348,7 +4348,7 @@ static int iax2_show_channels(int fd, int argc, char *argv[])
}
ast_mutex_unlock(&iaxsl[x]);
}
ast_cli(fd,"%d active IAX channel(s)\n",numchans);
ast_cli(fd,"%d active IAX channel%s\n",numchans,(numchans!=1)?"s":"");
returnRESULT_SUCCESS;
#undef FORMAT
#undef FORMAT2
@ -4443,7 +4443,7 @@ static int iax2_show_netstats(int fd, int argc, char *argv[])
ast_cli(fd," -------- LOCAL --------------------- -------- REMOTE --------------------\n");
ast_cli(fd,"Channel RTT Jit Del Lost %% Drop OOO Kpkts Jit Del Lost %% Drop OOO Kpkts\n");
numchans=ast_cli_netstats(fd,1);
ast_cli(fd,"%d active IAX channel(s)\n",numchans);
ast_cli(fd,"%d active IAX channel%s\n",numchans,(numchans!=1)?"s":"");
returnRESULT_SUCCESS;
}
@ -5887,7 +5887,7 @@ static int timing_read(int *id, int fd, short events, void *cbdata)
}else{
res=send_trunk(tpeer,&now);
if(iaxtrunkdebug)
ast_verbose(" - Trunk peer (%s:%d) has %d call chunk(s) in transit, %d bytes backloged and has hit a high water mark of %d bytes\n",ast_inet_ntoa(iabuf,sizeof(iabuf),tpeer->addr.sin_addr),ntohs(tpeer->addr.sin_port),res,tpeer->trunkdatalen,tpeer->trunkdataalloc);
ast_verbose(" - Trunk peer (%s:%d) has %d call chunk%s in transit, %d bytes backloged and has hit a high water mark of %d bytes\n",ast_inet_ntoa(iabuf,sizeof(iabuf),tpeer->addr.sin_addr),ntohs(tpeer->addr.sin_port),res,(res!=1)?"s":"",tpeer->trunkdatalen,tpeer->trunkdataalloc);
@ -430,11 +430,11 @@ static int handle_chanlist(int fd, int argc, char *argv[])
ast_mutex_unlock(&c->lock);
}
if(!concise){
ast_cli(fd,"%d active channel(s)\n",numchans);
ast_cli(fd,"%d active channel%s\n",numchans,(numchans!=1)?"s":"");
if(option_maxcalls)
ast_cli(fd,"%d of %d max active call(s) (%5.2f%% of capacity)\n",ast_active_calls(),option_maxcalls,((float)ast_active_calls()/(float)option_maxcalls)*100.0);
ast_cli(fd,"%d of %d max active call%s (%5.2f%% of capacity)\n",ast_active_calls(),option_maxcalls,(ast_active_calls()!=1)?"s":"",((float)ast_active_calls()/(float)option_maxcalls)*100.0);
else
ast_cli(fd,"%d active call(s)\n",ast_active_calls());
ast_cli(fd,"%d active call%s\n",ast_active_calls(),(ast_active_calls()!=1)?"s":"");