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_SELF, &self_ru);
|
||||||
getrusage(RUSAGE_CHILDREN, &c_ru);
|
getrusage(RUSAGE_CHILDREN, &c_ru);
|
||||||
getClientsMaxBuffers(&lol,&bib);
|
|
||||||
|
|
||||||
/* Server */
|
/* Server */
|
||||||
if (allsections || defsections || !strcasecmp(section,"server")) {
|
if (allsections || defsections || !strcasecmp(section,"server")) {
|
||||||
@ -2936,6 +2935,7 @@ sds genRedisInfoString(char *section) {
|
|||||||
|
|
||||||
/* Clients */
|
/* Clients */
|
||||||
if (allsections || defsections || !strcasecmp(section,"clients")) {
|
if (allsections || defsections || !strcasecmp(section,"clients")) {
|
||||||
|
getClientsMaxBuffers(&lol,&bib);
|
||||||
if (sections++) info = sdscat(info,"\r\n");
|
if (sections++) info = sdscat(info,"\r\n");
|
||||||
info = sdscatprintf(info,
|
info = sdscatprintf(info,
|
||||||
"# Clients\r\n"
|
"# Clients\r\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user