aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/ext/grpc/rb_grpc.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-14 07:14:47 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-14 07:14:47 -0700
commit5a1e7fda8482b06eba4c6e0df3f923e3edf02d43 (patch)
treea6d708e940500a06d1448b19cf6ef9b3fccb072c /src/ruby/ext/grpc/rb_grpc.c
parent677c50c92a89870c479230d03fa4a93109310906 (diff)
Ruby fixes for new timespec
Diffstat (limited to 'src/ruby/ext/grpc/rb_grpc.c')
-rw-r--r--src/ruby/ext/grpc/rb_grpc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ruby/ext/grpc/rb_grpc.c b/src/ruby/ext/grpc/rb_grpc.c
index b0ecbce091..f138bf6dd5 100644
--- a/src/ruby/ext/grpc/rb_grpc.c
+++ b/src/ruby/ext/grpc/rb_grpc.c
@@ -98,6 +98,7 @@ gpr_timespec grpc_rb_time_timeval(VALUE time, int interval) {
const char *tstr = interval ? "time interval" : "time";
const char *want = " want <secs from epoch>|<Time>|<GRPC::TimeConst.*>";
+ t.clock_type = GPR_CLOCK_REALTIME;
switch (TYPE(time)) {
case T_DATA:
if (CLASS_OF(time) == grpc_rb_cTimeVal) {