Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
a62801eb
Unverified
Commit
a62801eb
authored
May 05, 2021
by
Binbin
Committed by
GitHub
May 04, 2021
Browse files
redis-cli: Fix integer overflow in intrinsic-latency (#8907)
parent
152fce5e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
a62801eb
...
@@ -8142,7 +8142,7 @@ static void intrinsicLatencyModeStop(int s) {
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment