aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-02-22 17:49:45 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2016-02-22 17:49:45 -0800
commit0160873273be3fb502f05d4349e074422f4addcb (patch)
tree0a032623149bdb07abac743a6a752e3a08f71527 /src/core/surface
parentef02fb9d6ffa9b0df265a100cdd6262515c6029d (diff)
PR comments addressed
Diffstat (limited to 'src/core/surface')
-rw-r--r--src/core/surface/alarm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/surface/alarm.c b/src/core/surface/alarm.c
index fb496f6c47..8169ede065 100644
--- a/src/core/surface/alarm.c
+++ b/src/core/surface/alarm.c
@@ -64,8 +64,9 @@ grpc_alarm *grpc_alarm_create(grpc_completion_queue *cq, gpr_timespec deadline,
alarm->tag = tag;
grpc_cq_begin_op(cq, tag);
- grpc_timer_init(&exec_ctx, &alarm->alarm, deadline, alarm_cb, alarm,
- gpr_now(GPR_CLOCK_MONOTONIC));
+ grpc_timer_init(&exec_ctx, &alarm->alarm,
+ gpr_convert_clock_type(deadline, GPR_CLOCK_MONOTONIC),
+ alarm_cb, alarm, gpr_now(GPR_CLOCK_MONOTONIC));
grpc_exec_ctx_finish(&exec_ctx);
return alarm;
}