projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
10cf5ad
)
Change detail polling interval from 1s to 10s
author
Alan T. DeKok
<aland@freeradius.org>
Fri, 13 Feb 2009 14:08:14 +0000
(15:08 +0100)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/src/main/event.c
b/src/main/event.c
index
fffe2f5
..
ead4069
100644
(file)
--- a/
src/main/event.c
+++ b/
src/main/event.c
@@
-3192,11
+3192,11
@@
static void event_poll_detail(void *ctx)
when = now;
/*
- * Set the next poll time to be 1
.0 to 1.1
s, to help
+ * Set the next poll time to be 1
0.0s to 10.5
s, to help
* spread the load a bit over time.
*/
- when.tv_sec += 1;
- when.tv_usec += fr_rand() % (USEC /
10
);
+ when.tv_sec += 1
0
;
+ when.tv_usec += fr_rand() % (USEC /
2
);
rad_assert(this->type == RAD_LISTEN_DETAIL);