version 1.190.2.2, 2006/10/10 09:49:06
|
version 1.190.2.3, 2006/10/10 10:16:03
|
|
|
| |
#ifdef PEGASUS_SLP_REG_TIMEOUT | #ifdef PEGASUS_SLP_REG_TIMEOUT |
static struct timeval lastReregistrationTime = {0, 0}; | static struct timeval lastReregistrationTime = {0, 0}; |
const char * reRegTime = getenv("PEG_SLP_REG_TIMEOUT"); |
const char * reRegTime = getenv("PEGASUS_SLP_REG_TIMEOUT"); |
if (now.tv_sec - lastReregistrationTime.tv_sec > (atoi(reRegTime) * 60)) |
if (now.tv_sec - lastReregistrationTime.tv_sec > (atoi((const char*)reRegTime) * 60)) |
{ | { |
lastReregistrationTime.tv_sec = now.tv_sec; | lastReregistrationTime.tv_sec = now.tv_sec; |
startSLPProvider(); | startSLPProvider(); |