Skip to content
Snippets Groups Projects
Commit cf44bb50 authored by yang-g's avatar yang-g
Browse files

use millis to protect against potential overflow

parent edd46673
Branches
Tags
No related merge requests found
......@@ -56,7 +56,7 @@ extern double g_fixture_slowdown_factor;
#define GRPC_TIMEOUT_SECONDS_TO_DEADLINE(x) \
gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), \
gpr_time_from_micros(GRPC_TEST_SLOWDOWN_FACTOR * 1e6 * (x), \
gpr_time_from_millis(GRPC_TEST_SLOWDOWN_FACTOR * 1e3 * (x), \
GPR_TIMESPAN))
#define GRPC_TIMEOUT_MILLIS_TO_DEADLINE(x) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment