aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/ext/timeval.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-26 12:37:53 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-26 12:37:53 -0700
commitdfc42da76011eec3270b3dbcc94748916e0aa5b2 (patch)
tree5e1a69afefaaee7457ed1fa5796d00c06957757e /src/node/ext/timeval.cc
parentb256faa353159c0b6f3477777bed75b4f9de3e16 (diff)
parent5c575dd6e4b01cd68cca5d1917b58023dcf4ca0f (diff)
Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other
Conflicts: src/core/iomgr/tcp_server_windows.c
Diffstat (limited to 'src/node/ext/timeval.cc')
-rw-r--r--src/node/ext/timeval.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node/ext/timeval.cc b/src/node/ext/timeval.cc
index 60de4d816d..bf68513c48 100644
--- a/src/node/ext/timeval.cc
+++ b/src/node/ext/timeval.cc
@@ -52,6 +52,7 @@ gpr_timespec MillisecondsToTimespec(double millis) {
}
double TimespecToMilliseconds(gpr_timespec timespec) {
+ timespec = gpr_convert_clock_type(timespec, GPR_CLOCK_REALTIME);
if (gpr_time_cmp(timespec, gpr_inf_future(GPR_CLOCK_REALTIME)) == 0) {
return std::numeric_limits<double>::infinity();
} else if (gpr_time_cmp(timespec, gpr_inf_past(GPR_CLOCK_REALTIME)) == 0) {