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
d048f972
Commit
d048f972
authored
Dec 01, 2016
by
cbgbt
Committed by
antirez
Jun 20, 2017
Browse files
cli: Only print elapsed time on OUTPUT_STANDARD
parent
b5f22939
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
d048f972
...
@@ -1353,7 +1353,9 @@ static void repl(void) {
...
@@ -1353,7 +1353,9 @@ static void repl(void) {
}
}
elapsed = mstime()-start_time;
elapsed = mstime()-start_time;
if
(
elapsed
>=
500
)
{
if (elapsed >= 500 &&
config.output == OUTPUT_STANDARD)
{
printf("(%.2fs)\n",(double)elapsed/1000);
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