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

This commit is contained in:
Binbin 2021-05-05 01:21:14 +08:00 committed by GitHub
parent 152fce5e2c
commit a62801eb53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);