From cdf1a4df1c95eb7e083ae3dbd4695c686805b30a Mon Sep 17 00:00:00 2001 From: Laurentiu Date: Thu, 24 Oct 2024 14:39:56 +0300 Subject: [PATCH] rise default displayed streams/clients from 10 to 100 Relative to #4198 issue (limited clients/streams displayed on srs console) More than enaugh for most users. Maybe it would be more useful to define a variable in the conf file. --- trunk/src/app/srs_app_http_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/app/srs_app_http_api.cpp b/trunk/src/app/srs_app_http_api.cpp index e33b0c8361..78fc240f8c 100644 --- a/trunk/src/app/srs_app_http_api.cpp +++ b/trunk/src/app/srs_app_http_api.cpp @@ -793,7 +793,7 @@ srs_error_t SrsGoApiStreams::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessa std::string rstart = r->query_get("start"); std::string rcount = r->query_get("count"); int start = srs_max(0, atoi(rstart.c_str())); - int count = srs_max(10, atoi(rcount.c_str())); + int count = srs_max(100, atoi(rcount.c_str())); if ((err = stat->dumps_streams(data, start, count)) != srs_success) { int code = srs_error_code(err); srs_error_reset(err); @@ -855,7 +855,7 @@ srs_error_t SrsGoApiClients::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessa std::string rstart = r->query_get("start"); std::string rcount = r->query_get("count"); int start = srs_max(0, atoi(rstart.c_str())); - int count = srs_max(10, atoi(rcount.c_str())); + int count = srs_max(100, atoi(rcount.c_str())); if ((err = stat->dumps_clients(data, start, count)) != srs_success) { int code = srs_error_code(err); srs_error_reset(err);