diff options
author | yang-g <yangg@google.com> | 2015-08-27 11:03:40 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-08-27 11:03:40 -0700 |
commit | cf44bb5027b2700ab21f677bc2982e2b1ac0c267 (patch) | |
tree | eca04732aec516cb8906aaebd66906b098b9b83d | |
parent | edd4667348bae2bf79958ab7c3ebb06e9fc7fef7 (diff) |
use millis to protect against potential overflow
-rw-r--r-- | test/core/util/test_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) \ |