From 4f21e92ae06c948a46fda1e862a6c18c7ffd5830 Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 11 Nov 2014 18:49:27 +0800 Subject: [PATCH] fix the message of config for max_connections. --- trunk/src/app/srs_app_config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index b455459bd..0513cfada 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -1502,9 +1502,9 @@ int SrsConfig::check_config() "total=%d(max_connections=%d, nb_consumed_fds=%d), ret=%d. " "you can change max_connections from %d to %d, or " "you can login as root and set the limit: ulimit -HSn %d", - nb_connections, nb_total, max_open_files, + nb_connections, nb_total + 1, max_open_files, nb_total, nb_connections, nb_consumed_fds, - ret, nb_connections, nb_canbe, nb_total); + ret, nb_connections, nb_canbe, nb_total + 1); return ret; } }