Nearly tickless tinc.
Use pselect instead of select in main_loop (if available). This lets tincd sleeps as long as there is nothing to do.
This commit is contained in:
parent
64771f73eb
commit
50af33d01f
7 changed files with 63 additions and 15 deletions
|
|
@ -220,7 +220,7 @@ void age_subnets(void) {
|
|||
for(node = myself->subnet_tree->head; node; node = next) {
|
||||
next = node->next;
|
||||
s = node->data;
|
||||
if(s->expires && s->expires < now) {
|
||||
if(s->expires && s->expires <= now) {
|
||||
ifdebug(TRAFFIC) {
|
||||
char netstr[MAXNETSTR];
|
||||
if(net2str(netstr, sizeof netstr, s))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue