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
339b9dc2
Commit
339b9dc2
authored
Nov 03, 2010
by
Pieter Noordhuis
Browse files
Put duration in parenthesis
parent
cfcd5d6d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
339b9dc2
...
...
@@ -432,8 +432,9 @@ static void repl() {
cliPrintContextErrorAndExit
();
}
elapsed
=
mstime
()
-
start_time
;
if
(
elapsed
>
500
)
printf
(
"%.2f seconds
\n
"
,
(
double
)
elapsed
/
1000
);
if
(
elapsed
>=
500
)
{
printf
(
"(%.2fs)
\n
"
,(
double
)
elapsed
/
1000
);
}
}
}
/* Free the argument vector */
...
...
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