Skip to content

Commit

Permalink
Wake less eagerly after neighborhood maintenance.
Browse files Browse the repository at this point in the history
  • Loading branch information
jech committed Dec 14, 2009
1 parent a9ec5ee commit a4e2cf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dht.c
Expand Up @@ -1652,7 +1652,7 @@ neighbourhood_maintenance(int af)
struct node *n;

if(b == NULL)
return -1;
return 0;

memcpy(id, myid, 20);
id[19] = random() & 0xFF;
Expand All @@ -1679,8 +1679,9 @@ neighbourhood_maintenance(int af)
n->reply_time >= now.tv_sec - 15);
pinged(n, q);
}
return 1;
}
return 1;
return 0;
}

static int
Expand Down

0 comments on commit a4e2cf5

Please sign in to comment.