diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-07-22 17:16:49 -0700 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-07-22 17:16:49 -0700 |
commit | b358c41c7e901e170de7621c682b845469f4f667 (patch) | |
tree | 7d50d04ee26bba3571b476a0b9e7514ea7b740ce | |
parent | 044d153141673c2ea05fe3d1554b3c064d6aa3bd (diff) |
Move clock type
-rw-r--r-- | src/core/surface/channel_connectivity.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/surface/channel_connectivity.c b/src/core/surface/channel_connectivity.c index dd12ff5611..b6ea86d730 100644 --- a/src/core/surface/channel_connectivity.c +++ b/src/core/surface/channel_connectivity.c @@ -172,8 +172,9 @@ void grpc_channel_watch_connectivity_state( w->tag = tag; w->channel = channel; - grpc_alarm_init(&w->alarm, deadline, timeout_complete, w, - gpr_now(GPR_CLOCK_REALTIME)); + grpc_alarm_init( + &w->alarm, gpr_convert_clock_type(deadline, GPR_CLOCK_MONOTONIC), + timeout_complete, w, gpr_now(GPR_CLOCK_MONOTONIC)); if (client_channel_elem->filter != &grpc_client_channel_filter) { gpr_log(GPR_ERROR, |