mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 08:30:51 +00:00
Fix nanosecond conversion
1 microsecond = 1000 nanoseconds 1e3 = 1000 10e3 = 10000
This commit is contained in:
parent
8b3aa734c9
commit
15dacfec6f
@ -2331,7 +2331,7 @@ static void intrinsicLatencyMode(void) {
|
||||
}
|
||||
|
||||
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) {
|
||||
printf("\n%lld total runs "
|
||||
"(avg latency: "
|
||||
|
Loading…
x
Reference in New Issue
Block a user