Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
13546adc
Commit
13546adc
authored
Dec 01, 2016
by
cbgbt
Committed by
antirez
Jun 20, 2017
Browse files
cli: Only print elapsed time on OUTPUT_STANDARD
parent
373facf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
13546adc
...
...
@@ -1351,7 +1351,9 @@ static void repl(void) {
}
elapsed
=
mstime
()
-
start_time
;
if
(
elapsed
>=
500
)
{
if
(
elapsed
>=
500
&&
config
.
output
==
OUTPUT_STANDARD
)
{
printf
(
"(%.2fs)
\n
"
,(
double
)
elapsed
/
1000
);
}
}
...
...
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