diff options
Diffstat (limited to 'cli.c')
-rwxr-xr-x | cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" : ""); } return RESULT_SUCCESS; } |