Revision 5484da90 topology-ALTO.c

View differences:

topology-ALTO.c
27 27
#include "measures.h"
28 28
#include "config.h"
29 29

  
30

  
30 31
static int NEIGHBORHOOD_TARGET_SIZE;
31 32

  
32 33
static struct peerset *pset;
33 34
static struct timeval tout_bmap = {10, 0};
34 35

  
36
#define LOG_EVERY	1000
35 37
static int cnt = 0;
38

  
36 39
static struct nodeID *me;
37 40
static unsigned char mTypes[] = {MSG_TYPE_TOPOLOGY};
38 41
static uint64_t currtime;
......
368 371
	timersub(&tnow, &tout_bmap, &told);
369 372
	peers = peerset_get_peers(pset);
370 373

  
371
	if (++cnt % 10 == 0) {
374
	if (LOG_EVERY && ++cnt % LOG_EVERY == 0) {
372 375
		fprintf(stderr,"\nMy peerset : size = %d\n",psize);
373 376
		for (i=0;i<psize;i++) {
374 377
			fprintf(stderr,"\t%d : %s\n",i,node_addr(peers[i].id));

Also available in: Unified diff