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
0a03187a
Commit
0a03187a
authored
Jun 20, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Jun 20, 2017
Browse files
Merge pull request #3659 from cbgbt/cli-elapsed
cli: Only print elapsed time on OUTPUT_STANDARD.
parents
a2146c75
e5db99ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
0a03187a
...
@@ -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