Revision 43b793e3 src/PeerSampler/cyclon.c

View differences:

src/PeerSampler/cyclon.c
74 74
  return 0;
75 75
}
76 76

  
77
static void cache_add_cache(struct peer_cache *dst, const struct peer_cache *add)
78
{
79
  int i, meta_size;
80
  const uint8_t *meta;
81

  
82
  meta = get_metadata(add, &meta_size);
83
  for (i = 0; nodeid(add, i); i++) {
84
    cache_add(dst,  nodeid(add, i), meta + (meta_size * i), meta_size);
85
  }
86
}
87

  
88

  
89 77
/*
90 78
 * Public Functions!
91 79
 */

Also available in: Unified diff