Skip to content

Commit

Permalink
rise default displayed streams/clients from 10 to 100
Browse files Browse the repository at this point in the history
Relative to  ossrs#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.
  • Loading branch information
laurfb authored Oct 24, 2024
1 parent 1840476 commit cdf1a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/src/app/srs_app_http_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cdf1a4d

Please sign in to comment.