--- smsdaemon/SmsDaemon.cpp 2008/06/16 16:41:18 101 +++ smsdaemon/SmsDaemon.cpp 2008/12/07 00:59:05 132 @@ -3,6 +3,8 @@ #include #include +#include + #include "common.h" #include "GsmModem.h" @@ -32,7 +34,7 @@ void SmsDaemon::CheckSms() { - const int INTERVAL = 250; //no of milliseconds between sms checks + const int INTERVAL = 1000; //no of milliseconds between sms checks timeval now = Util::GetTimeOfDay(); if ( Util::mTimeDiff(_lastSmsCheck,now) < INTERVAL) @@ -88,7 +90,7 @@ if (cmn->isDebug && kbhit()) break; - Util::Sleep(10); + Util::Sleep(100); } } @@ -97,6 +99,7 @@ { Common* cmn = Common::instance(); + srand(time(0)); cmn->daemonStart = time(0); _lastSmsCheck = Util::GetTimeOfDay();