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
15dacfec
Commit
15dacfec
authored
Jan 13, 2016
by
Jan-Erik Rediger
Browse files
Fix nanosecond conversion
1 microsecond = 1000 nanoseconds 1e3 = 1000 10e3 = 10000
parent
8b3aa734
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
15dacfec
...
@@ -2331,7 +2331,7 @@ static void intrinsicLatencyMode(void) {
...
@@ -2331,7 +2331,7 @@ static void intrinsicLatencyMode(void) {
}
}
double
avg_us
=
(
double
)
run_time
/
runs
;
double
avg_us
=
(
double
)
run_time
/
runs
;
double
avg_ns
=
avg_us
*
1
0
e3
;
double
avg_ns
=
avg_us
*
1e3
;
if
(
force_cancel_loop
||
end
>
test_end
)
{
if
(
force_cancel_loop
||
end
>
test_end
)
{
printf
(
"
\n
%lld total runs "
printf
(
"
\n
%lld total runs "
"(avg latency: "
"(avg latency: "
...
...
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