diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-09-29 08:37:09 -0700 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-09-29 08:37:09 -0700 |
commit | 114bda10906a602907fd9e469b9583a9e219fa47 (patch) | |
tree | 810ea2a55ebef52fd5b7591d676e7cd85c0fbef1 /src/core/iomgr | |
parent | 6b5bf16240039c304b494bb341eb3820271e27d6 (diff) |
Fix rounding error so IOCP completes on time
Diffstat (limited to 'src/core/iomgr')
-rw-r--r-- | src/core/iomgr/iocp_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/iocp_windows.c b/src/core/iomgr/iocp_windows.c index af846f680f..349440fa88 100644 --- a/src/core/iomgr/iocp_windows.c +++ b/src/core/iomgr/iocp_windows.c @@ -68,7 +68,7 @@ static DWORD deadline_to_millis_timeout(gpr_timespec deadline, } timeout = gpr_time_sub(deadline, now); return gpr_time_to_millis(gpr_time_add( - timeout, gpr_time_from_nanos(GPR_NS_PER_SEC - 1, GPR_TIMESPAN))); + timeout, gpr_time_from_nanos(GPR_NS_PER_MS - 1, GPR_TIMESPAN))); } void grpc_iocp_work(grpc_exec_ctx *exec_ctx, gpr_timespec deadline) { |