From cf44bb5027b2700ab21f677bc2982e2b1ac0c267 Mon Sep 17 00:00:00 2001 From: yang-g Date: Thu, 27 Aug 2015 11:03:40 -0700 Subject: use millis to protect against potential overflow --- test/core/util/test_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/core/util/test_config.h') diff --git a/test/core/util/test_config.h b/test/core/util/test_config.h index b2cc40bb47..ccef8620c1 100644 --- a/test/core/util/test_config.h +++ b/test/core/util/test_config.h @@ -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) \ -- cgit v1.2.3