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
e5db99ad
Commit
e5db99ad
authored
Dec 01, 2016
by
cbgbt
Browse files
cli: Only print elapsed time on OUTPUT_STANDARD
parent
6eb0c52d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
e5db99ad
...
...
@@ -1344,7 +1344,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