Author: mturk
Date: Thu Jul 7 11:15:33 2011
New Revision: 1143763
URL: http://svn.apache.org/viewvc?rev=1143763&view=rev
Log:
Fix usec remainder calculation
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/win32/util.c
Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/util.c
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/util.c?rev=1143763&r1=1143762&r2=1143763&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/util.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/util.c Thu Jul 7
11:15:33 2011
@@ -514,7 +514,7 @@ AcrWaitIO(SOCKET sd, int timeout, int ev
if (timeout > 0) {
tp = &tv;
tp->tv_sec = (long)(timeout / 1000);
- tp->tv_usec = (long)((timeout * 1000LL) % ACR_USEC_PER_SEC);
+ tp->tv_usec = (long)(timeout % 1000) * 1000;
}
rc = select(1, &rdset, &wrset, 0, tp);
if (rc == SOCKET_ERROR)