diff --git a/main/astfd.c b/main/astfd.c index d1879f092c3161fe1e2cb3929d92b6804416c537..0a5e7ec801cfc82a1e370eaa376b85598aa10c75 100644 --- a/main/astfd.c +++ b/main/astfd.c @@ -276,10 +276,10 @@ static char *handle_show_fd(struct ast_cli_entry *e, int cmd, struct ast_cli_arg return NULL; } getrlimit(RLIMIT_NOFILE, &rl); - if (rl.rlim_cur == RLIM_INFINITY || rl.rlim_max == RLIM_INFINITY) { + if (rl.rlim_cur == RLIM_INFINITY) { ast_copy_string(line, "unlimited", sizeof(line)); } else { - snprintf(line, sizeof(line), "%d/%d", (int) rl.rlim_cur, (int) rl.rlim_max); + snprintf(line, sizeof(line), "%d", (int) rl.rlim_cur); } ast_cli(a->fd, "Current maxfiles: %s\n", line); for (i = 0; i < ARRAY_LEN(fdleaks); i++) {