SILC Runtime Toolkit 1.2 Beta 1
[runtime.git] / lib / silcutil / symbian / silcsymbianscheduler.cpp
index c61af404b0a643453d4063bfe94efc9851101b73..8f1cd5cfc368b3bbbb567d49de703082bdee48f6 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2007 Pekka Riikonen
+  Copyright (C) 2007 - 2008 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 
 */
 
-#include "silc.h"
+#include "silcruntime.h"
 #include <e32base.h>
 
 /* The SILC Scheduler for Symbian handles only timeout tasks.  Fd tasks are
@@ -203,7 +203,7 @@ int silc_poll(SilcSchedule schedule, void *context)
     at_timeout += (TTimeIntervalMicroSeconds32)(2100 * 1000 * 1000);
     timeout -= (2100 * 1000);
   }
-  at_timeout += (TTimeIntervalMicroSeconds32)timeout;
+  at_timeout += (TTimeIntervalMicroSeconds32)(timeout * 1000);
 
   /* Schedule the timeout */
   if (internal->timer->IsActive())