version 1.43, 2006/09/13 20:57:40
|
version 1.44, 2006/09/15 18:06:12
|
|
|
#include <Pegasus/Common/HTTPAcceptor.h> | #include <Pegasus/Common/HTTPAcceptor.h> |
#include <Pegasus/Common/PegasusVersion.h> | #include <Pegasus/Common/PegasusVersion.h> |
#include <Pegasus/Common/MessageLoader.h> | #include <Pegasus/Common/MessageLoader.h> |
|
#include <Pegasus/Common/Time.h> |
#include <Pegasus/ExportServer/CIMExportResponseEncoder.h> | #include <Pegasus/ExportServer/CIMExportResponseEncoder.h> |
#include <Pegasus/ExportServer/CIMExportRequestDecoder.h> | #include <Pegasus/ExportServer/CIMExportRequestDecoder.h> |
#include <Pegasus/Consumer/CIMIndicationConsumer.h> | #include <Pegasus/Consumer/CIMIndicationConsumer.h> |
|
|
_monitor->run(500000); | _monitor->run(500000); |
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; |