|
|
@ -227,7 +227,7 @@ int32_t LP_mainloop_iter(char *myipaddr,struct LP_peerinfo *mypeer,int32_t pubso |
|
|
|
} |
|
|
|
HASH_ITER(hh,LP_peerinfos,peer,tmp) |
|
|
|
{ |
|
|
|
//printf("updatepeer.%s lag.%d\n",peer->ipaddr,now-peer->lastpeers);
|
|
|
|
printf("updatepeer.%s lag.%d\n",peer->ipaddr,now-peer->lastpeers); |
|
|
|
if ( now > peer->lastpeers+60 && peer->numpeers > 0 && (peer->numpeers != numpeers || (rand() % 10000) == 0) ) |
|
|
|
{ |
|
|
|
peer->lastpeers = now; |
|
|
|