Revision 4729fe2d topology.c

View differences:

topology.c
8 8
#include <topmanager.h>
9 9

  
10 10
#include "topology.h"
11
#include "dbg.h"
11 12

  
12 13
static struct timeval tout_bmap = {3, 0};
13 14

  
......
19 20
  struct peer *peers;
20 21
  struct timeval tnow, told;
21 22

  
22

  
23
  dprintf("Update peers: topo_msg:%d, ",len);
24
  dprintf("before:%d, ",peerset_size(pset));
23 25
  topParseData(buff, len);
24 26
  ids = topGetNeighbourhood(&n_ids);
25 27
  peerset_add_peers(pset,ids,n_ids);
28
  dprintf("after:%d, ",peerset_size(pset));
26 29

  
27 30
  gettimeofday(&tnow, NULL);
28 31
  timersub(&tnow, &tout_bmap, &told);
......
34 37
      peerset_remove_peer(pset, peers[i--].id);
35 38
    }
36 39
  }
40
  dprintf("after timer check:%d\n",peerset_size(pset));
37 41
}

Also available in: Unified diff