Fix nanosecond conversion

1 microsecond = 1000 nanoseconds
1e3 = 1000
10e3 = 10000
This commit is contained in:
Jan-Erik Rediger 2016-01-13 10:22:29 -07:00 committed by antirez
parent d6864d2999
commit 6d567d0c6f

View File

@ -2161,7 +2161,7 @@ static void intrinsicLatencyMode(void) {
} }
double avg_us = (double)run_time/runs; double avg_us = (double)run_time/runs;
double avg_ns = avg_us * 10e3; 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: "