mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
move get clients max buffer calculate into info clients command
This commit is contained in:
@@ -2866,7 +2866,6 @@ sds genRedisInfoString(char *section) {
|
||||
|
||||
getrusage(RUSAGE_SELF, &self_ru);
|
||||
getrusage(RUSAGE_CHILDREN, &c_ru);
|
||||
getClientsMaxBuffers(&lol,&bib);
|
||||
|
||||
/* Server */
|
||||
if (allsections || defsections || !strcasecmp(section,"server")) {
|
||||
@@ -2936,6 +2935,7 @@ sds genRedisInfoString(char *section) {
|
||||
|
||||
/* Clients */
|
||||
if (allsections || defsections || !strcasecmp(section,"clients")) {
|
||||
getClientsMaxBuffers(&lol,&bib);
|
||||
if (sections++) info = sdscat(info,"\r\n");
|
||||
info = sdscatprintf(info,
|
||||
"# Clients\r\n"
|
||||
|
||||
Reference in New Issue
Block a user