aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-16 18:11:00 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-16 18:11:00 +0000
commitdb76a0b33650e432a4157f3e2cf5cd6c999da94c (patch)
tree4b5e4492714a9863a8b4e638bd93b2204e52e53a /pbx.c
parent3c928b478a465e6b4de39ff28d80ce1629b488b9 (diff)
clean up singular vs. plural output for the 'show dialplan' CLI command
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6623 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index a2f38f6c1..c5cc80502 100755
--- a/pbx.c
+++ b/pbx.c
@@ -3506,8 +3506,10 @@ static int handle_show_dialplan(int fd, int argc, char *argv[])
return RESULT_FAILURE;
}
- ast_cli(fd,"-= %d extensions (%d priorities) in %d contexts. =-\n",
- counters.total_exten, counters.total_prio, counters.total_context);
+ ast_cli(fd,"-= %d %s (%d %s) in %d %s. =-\n",
+ counters.total_exten, counters.total_exten == 1 ? "extension" : "extensions",
+ counters.total_prio, counters.total_prio == 1 ? "priority" : "priorities",
+ counters.total_context, counters.total_context == 1 ? "context" : "contexts");
/* everything ok */
return RESULT_SUCCESS;