From 114bda10906a602907fd9e469b9583a9e219fa47 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 29 Sep 2015 08:37:09 -0700 Subject: Fix rounding error so IOCP completes on time --- src/core/iomgr/iocp_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/iomgr') 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) { -- cgit v1.2.3