[Spice-commits] server/red_worker.c

Alon Levy alon at kemper.freedesktop.org
Fri Apr 27 01:39:37 PDT 2012


 server/red_worker.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8d3ebe31ddb4004a4aa794bc1da444573a9914f8
Author: Jeremy White <jwhite at codeweavers.com>
Date:   Thu Apr 26 12:09:50 2012 -0500

    Force 64 bit multiplication on 32 bit systems; fixes a bug where the server times out the display channel freakily fast.

diff --git a/server/red_worker.c b/server/red_worker.c
index 297b168..e341c00 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -4636,7 +4636,7 @@ static inline uint64_t red_now(void)
 
     clock_gettime(CLOCK_MONOTONIC, &time);
 
-    return time.tv_sec * 1000000000 + time.tv_nsec;
+    return ((uint64_t) time.tv_sec) * 1000000000 + time.tv_nsec;
 }
 
 static int red_process_cursor(RedWorker *worker, uint32_t max_pipe_size, int *ring_is_empty)


More information about the Spice-commits mailing list