/[projects]/smsdaemon/SmsDaemon.cpp
ViewVC logotype

Diff of /smsdaemon/SmsDaemon.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 95 by torben, Mon Jun 16 12:21:30 2008 UTC revision 128 by torben, Sat Dec 6 15:13:34 2008 UTC
# Line 19  Line 19 
19    
20  using namespace std;  using namespace std;
21    
   
22  void SmsDaemon::CreateLogMessage(SMS& sms,bool hasPlugin)  void SmsDaemon::CreateLogMessage(SMS& sms,bool hasPlugin)
23  {  {
24          ostringstream os;          ostringstream os;
# Line 33  void SmsDaemon::CreateLogMessage(SMS& sm Line 32  void SmsDaemon::CreateLogMessage(SMS& sm
32    
33  void SmsDaemon::CheckSms()  void SmsDaemon::CheckSms()
34  {  {
35          const int INTERVAL = 250; //no of milliseconds between sms checks          const int INTERVAL = 1000; //no of milliseconds between sms checks
36          timeval now = Util::GetTimeOfDay();          timeval now = Util::GetTimeOfDay();
37    
38          if ( Util::mTimeDiff(_lastSmsCheck,now) < INTERVAL)          if ( Util::mTimeDiff(_lastSmsCheck,now) < INTERVAL)
# Line 89  void SmsDaemon::MainLoop() Line 88  void SmsDaemon::MainLoop()
88                  if (cmn->isDebug && kbhit())                  if (cmn->isDebug && kbhit())
89                          break;                          break;
90    
91                  Util::Sleep(10);                  Util::Sleep(100);
92    
93          }          }
94  }  }
# Line 104  void SmsDaemon::Start() Line 103  void SmsDaemon::Start()
103    
104          cmn->logMessage("--------------------------------");          cmn->logMessage("--------------------------------");
105          cmn->logMessage( VERSION );          cmn->logMessage( VERSION );
106          cmn->logMessage( SVNVER );          cmn->logMessage( SVNVERSION );
107    
108          cmn->GetTaskManager()->LoadTasks();          cmn->GetTaskManager()->LoadTasks();
109          cmn->GetPluginManager()->LoadPlugins();          cmn->GetPluginManager()->LoadPlugins();

Legend:
Removed from v.95  
changed lines
  Added in v.128

  ViewVC Help
Powered by ViewVC 1.1.20