Skip to content

Commit

Permalink
Pointless stylistic change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jech committed Nov 16, 2009
1 parent ccc59d1 commit 9f16903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dht.c
Expand Up @@ -1689,9 +1689,9 @@ bucket_maintenance(int af)
/* If the bucket is empty, we try to fill it from a neighbour.
We also sometimes do it gratuitiously to recover from
buckets full of broken nodes. */
if(q->next && (q->count == 0 || random() % 7 == 0))
if(q->next && (q->count == 0 || (random() & 7) == 0))
q = b->next;
if(q->count == 0 || random() % 7 == 0) {
if(q->count == 0 || (random() & 7) == 0) {
struct bucket *r;
r = previous_bucket(b);
if(r && r->count > 0)
Expand Down

0 comments on commit 9f16903

Please sign in to comment.