提交 ee9f3679 编写于 作者: A antirez

Fixed a bug in the average latency metering of redis-cli --latency

上级 28de624c
......@@ -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)",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册