aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-22 17:16:49 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-22 17:16:49 -0700
commitb358c41c7e901e170de7621c682b845469f4f667 (patch)
tree7d50d04ee26bba3571b476a0b9e7514ea7b740ce
parent044d153141673c2ea05fe3d1554b3c064d6aa3bd (diff)
Move clock type
-rw-r--r--src/core/surface/channel_connectivity.c5
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,