mirror of https://mirror.osredm.com/root/redis.git
redis-cli: Fix integer overflow in intrinsic-latency (#8907)
This commit is contained in:
parent
152fce5e2c
commit
a62801eb53
|
@ -8142,7 +8142,7 @@ static void intrinsicLatencyModeStop(int s) {
|
||||||
static void intrinsicLatencyMode(void) {
|
static void intrinsicLatencyMode(void) {
|
||||||
long long test_end, run_time, max_latency = 0, runs = 0;
|
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;
|
test_end = ustime() + run_time;
|
||||||
signal(SIGINT, intrinsicLatencyModeStop);
|
signal(SIGINT, intrinsicLatencyModeStop);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue