mirror of
https://github.com/fluencelabs/redis
synced 2025-05-10 09:47:12 +00:00
Fixed a bug in the average latency metering of redis-cli --latency
This commit is contained in:
parent
28de624c70
commit
ee9f3679a9
@ -762,6 +762,7 @@ static void latencyMode(void) {
|
||||
} else {
|
||||
if (latency < min) min = latency;
|
||||
if (latency > max) max = latency;
|
||||
tot += latency;
|
||||
avg = (double) tot/count;
|
||||
}
|
||||
printf("\x1b[0G\x1b[2Kmin: %lld, max: %lld, avg: %.2f (%lld samples)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user