Change detail polling interval from 1s to 10s
authorAlan T. DeKok <aland@freeradius.org>
Fri, 13 Feb 2009 14:08:14 +0000 (15:08 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 13 Feb 2009 14:08:14 +0000 (15:08 +0100)
This lowers the noise in debugging mode.  It shouldn't affect performance.

src/main/event.c

index fffe2f5..ead4069 100644 (file)
@@ -3192,11 +3192,11 @@ static void event_poll_detail(void *ctx)
        when = now;
 
        /*
-        *      Set the next poll time to be 1.0 to 1.1s, to help
+        *      Set the next poll time to be 10.0s to 10.5s, to help
         *      spread the load a bit over time.
         */
-       when.tv_sec += 1;
-       when.tv_usec += fr_rand() % (USEC / 10);
+       when.tv_sec += 10;
+       when.tv_usec += fr_rand() % (USEC / 2);
 
        rad_assert(this->type == RAD_LISTEN_DETAIL);