freebsd-ports/sysutils/synergy/files/patch-CXWindowsScreen.cpp
Kevin Lo c81ac32f3a Fixed waste CPU resources.
Submitted by: wes@
2003-11-12 07:06:34 +00:00

11 lines
371 B
C++

--- lib/platform/CXWindowsScreen.cpp.orig Sun Jul 20 09:21:19 2003
+++ lib/platform/CXWindowsScreen.cpp Fri Oct 17 14:28:26 2003
@@ -293,7 +293,7 @@
}
}
#if HAVE_POLL
- int timeout = static_cast<int>(1000.0 * dtimeout);
+ int timeout = (dtimeout < 0) ? -1 : static_cast<int>(1000.0 * dtimeout);
#else
struct timeval timeout;
struct timeval* timeoutPtr;