Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0cf3794e
Commit
0cf3794e
authored
Jul 19, 2018
by
antirez
Browse files
Fix wrong array index variable in getExpansiveClientsInfo().
parent
ea3a20c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
0cf3794e
...
@@ -926,7 +926,7 @@ void getExpansiveClientsInfo(size_t *in_usage, size_t *out_usage) {
...
@@ -926,7 +926,7 @@ void getExpansiveClientsInfo(size_t *in_usage, size_t *out_usage) {
size_t
i
=
0
,
o
=
0
;
size_t
i
=
0
,
o
=
0
;
for
(
int
j
=
0
;
j
<
CLIENTS_PEAK_MEM_USAGE_SLOTS
;
j
++
)
{
for
(
int
j
=
0
;
j
<
CLIENTS_PEAK_MEM_USAGE_SLOTS
;
j
++
)
{
if
(
ClientsPeakMemInput
[
j
]
>
i
)
i
=
ClientsPeakMemInput
[
j
];
if
(
ClientsPeakMemInput
[
j
]
>
i
)
i
=
ClientsPeakMemInput
[
j
];
if
(
ClientsPeakMemOutput
[
j
]
>
o
)
o
=
ClientsPeakMemOutput
[
o
];
if
(
ClientsPeakMemOutput
[
j
]
>
o
)
o
=
ClientsPeakMemOutput
[
j
];
}
}
*
in_usage
=
i
;
*
in_usage
=
i
;
*
out_usage
=
o
;
*
out_usage
=
o
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment