[PATCH xorg-gtest] xserver: usecs are usecs, not millis

Peter Hutterer peter.hutterer at who-t.net
Mon Dec 17 22:22:52 PST 2012


oops.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/xserver.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xserver.cpp b/src/xserver.cpp
index 2aff401..def6a89 100644
--- a/src/xserver.cpp
+++ b/src/xserver.cpp
@@ -108,7 +108,7 @@ bool xorg::testing::XServer::WaitForEvent(::Display *display, time_t timeout)
 
         struct timeval timeval = {
             static_cast<time_t>(timeout / 1000),
-            static_cast<time_t>(timeout % 1000),
+            static_cast<time_t>(timeout % 1000) * 1000,
         };
 
         int ret;
-- 
1.8.0.2



More information about the xorg-devel mailing list