diff options
author | 2015-07-07 13:54:12 -0700 | |
---|---|---|
committer | 2015-07-07 13:54:12 -0700 | |
commit | a25ca0b4fd2ba8fbcf39eb5300d36d1283225fec (patch) | |
tree | c93bc309730f07515fa8998536ec3eedc20b4fa5 /src/core | |
parent | 547fed4e8b0b8e2390498b748ee49a033e5039ae (diff) |
Update to latest code
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/client_config/subchannel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/client_config/subchannel.c b/src/core/client_config/subchannel.c index 6cf9062ab0..8cdad1015f 100644 --- a/src/core/client_config/subchannel.c +++ b/src/core/client_config/subchannel.c @@ -300,7 +300,7 @@ static void continue_connect(grpc_subchannel *c) { } static void start_connect(grpc_subchannel *c) { - gpr_timespec now = gpr_now(); + gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME); c->next_attempt = now; c->backoff_delta = gpr_time_from_seconds(1); @@ -585,7 +585,7 @@ static void subchannel_connected(void *arg, int iomgr_success) { c->have_alarm = 1; c->next_attempt = gpr_time_add(c->next_attempt, c->backoff_delta); c->backoff_delta = gpr_time_add(c->backoff_delta, c->backoff_delta); - grpc_alarm_init(&c->alarm, c->next_attempt, on_alarm, c, gpr_now()); + grpc_alarm_init(&c->alarm, c->next_attempt, on_alarm, c, gpr_now(GPR_CLOCK_REALTIME)); gpr_mu_unlock(&c->mu); } } |