Unverified Commit a62801eb authored by Binbin's avatar Binbin Committed by GitHub
Browse files

redis-cli: Fix integer overflow in intrinsic-latency (#8907)

parent 152fce5e
......@@ -8142,7 +8142,7 @@ static void intrinsicLatencyModeStop(int s) {
static void intrinsicLatencyMode(void) {
long long test_end, run_time, max_latency = 0, runs = 0;
run_time = config.intrinsic_latency_duration*1000000;
run_time = (long long)config.intrinsic_latency_duration * 1000000;
test_end = ustime() + run_time;
signal(SIGINT, intrinsicLatencyModeStop);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment