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
13bd7028
Commit
13bd7028
authored
Jan 13, 2016
by
Jan-Erik Rediger
Committed by
antirez
May 05, 2016
Browse files
Fix nanosecond conversion
1 microsecond = 1000 nanoseconds 1e3 = 1000 10e3 = 10000
parent
f6b7df3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
13bd7028
...
@@ -2471,7 +2471,7 @@ static void intrinsicLatencyMode(void) {
...
@@ -2471,7 +2471,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