mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
make CLI output use singular/plural when appropriate (bug #4654)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
8
cdr.c
8
cdr.c
@@ -1052,10 +1052,10 @@ static int handle_cli_status(int fd, int argc, char *argv[])
|
||||
nextbatchtime = ast_sched_when(sched, cdr_sched);
|
||||
ast_cli(fd, "CDR safe shut down: %s\n", batchsafeshutdown ? "enabled" : "disabled");
|
||||
ast_cli(fd, "CDR batch threading model: %s\n", batchscheduleronly ? "scheduler only" : "scheduler plus separate threads");
|
||||
ast_cli(fd, "CDR current batch size: %d record(s)\n", cnt);
|
||||
ast_cli(fd, "CDR maximum batch size: %d record(s)\n", batchsize);
|
||||
ast_cli(fd, "CDR maximum batch time: %d second(s)\n", batchtime);
|
||||
ast_cli(fd, "CDR next scheduled batch processing time: %ld second(s)\n", nextbatchtime);
|
||||
ast_cli(fd, "CDR current batch size: %d record%s\n", cnt, (cnt != 1) ? "s" : "");
|
||||
ast_cli(fd, "CDR maximum batch size: %d record%s\n", batchsize, (batchsize != 1) ? "s" : "");
|
||||
ast_cli(fd, "CDR maximum batch time: %d second%s\n", batchtime, (batchtime != 1) ? "s" : "");
|
||||
ast_cli(fd, "CDR next scheduled batch processing time: %ld second%s\n", nextbatchtime, (nextbatchtime != 1) ? "s" : "");
|
||||
}
|
||||
AST_LIST_LOCK(&be_list);
|
||||
AST_LIST_TRAVERSE(&be_list, beitem, list) {
|
||||
|
Reference in New Issue
Block a user