version 1.15, 2006/09/13 20:57:39
|
version 1.16, 2006/09/15 18:06:12
|
|
|
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/System.h> | #include <Pegasus/Common/System.h> |
|
#include <Pegasus/Common/Time.h> |
| |
#include "ListenerService.h" | #include "ListenerService.h" |
| |
|
|
listenerService->_monitor->run(30000); | listenerService->_monitor->run(30000); |
static struct timeval lastIdleCleanupTime = {0, 0}; | static struct timeval lastIdleCleanupTime = {0, 0}; |
struct timeval now; | struct timeval now; |
gettimeofday(&now, 0); |
Time::gettimeofday(&now); |
if (now.tv_sec - lastIdleCleanupTime.tv_sec > 300) | if (now.tv_sec - lastIdleCleanupTime.tv_sec > 300) |
{ | { |
lastIdleCleanupTime.tv_sec = now.tv_sec; | lastIdleCleanupTime.tv_sec = now.tv_sec; |