move get clients max buffer calculate into info clients command
This commit is contained in:
parent
84b281209a
commit
f4eb64cd35
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user