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
5386f72d
Commit
5386f72d
authored
Apr 18, 2012
by
antirez
Browse files
redis-cli --bigkeys output modified to be simpler to read..
parent
f26761aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
5386f72d
...
@@ -1030,7 +1030,7 @@ static void findBigKeys(void) {
...
@@ -1030,7 +1030,7 @@ static void findBigKeys(void) {
reply3
=
redisCommand
(
context
,
"%s %s"
,
sizecmd
,
reply1
->
str
);
reply3
=
redisCommand
(
context
,
"%s %s"
,
sizecmd
,
reply1
->
str
);
if
(
reply3
&&
reply3
->
type
==
REDIS_REPLY_INTEGER
)
{
if
(
reply3
&&
reply3
->
type
==
REDIS_REPLY_INTEGER
)
{
if
(
biggest
[
type
]
<
reply3
->
integer
)
{
if
(
biggest
[
type
]
<
reply3
->
integer
)
{
printf
(
"
B
iggest
%s
so far
: %s,
size
:
%llu
\n
"
,
printf
(
"
[%6s] %s | b
iggest so far
with
size %llu
\n
"
,
typename
[
type
],
reply1
->
str
,
typename
[
type
],
reply1
->
str
,
(
unsigned
long
long
)
reply3
->
integer
);
(
unsigned
long
long
)
reply3
->
integer
);
biggest
[
type
]
=
reply3
->
integer
;
biggest
[
type
]
=
reply3
->
integer
;
...
...
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