[evolution-data-server/gnome-2-30] Fix idle dwell time



commit c0f93ea074bf6d1ca439b6e7e02422e7dd4ec8f0
Author: David Woodhouse <David Woodhouse intel com>
Date:   Fri Jun 25 09:36:46 2010 +0100

    Fix idle dwell time
    
    When switching from sleep() to g_usleep() in commit 25b19908, we should
    also have converted its argument into µs.
    (cherry picked from commit 58ccfbd74eb2ceff2be79a3767e4884ce772469e)

 camel/providers/imapx/camel-imapx-server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 28f87de..51738d9 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2052,7 +2052,7 @@ imapx_idle_thread (gpointer data)
 
 			if (dwelled < IMAPX_IDLE_DWELL_TIME) {
 				IDLE_UNLOCK(is->idle);
-				g_usleep(IMAPX_IDLE_DWELL_TIME - dwelled);
+				g_usleep((IMAPX_IDLE_DWELL_TIME - dwelled) * G_USEC_PER_SEC);
 				continue;
 			}
 			IDLE_UNLOCK(is->idle);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]