Revision 83329c86 topology.c

View differences:

topology.c
254 254
int cmp_rtt(const struct nodeID* a, const struct nodeID* b) {
255 255
  double ra, rb;
256 256
  ra = get_rtt_of(a);
257
  rb = get_rtt_of(a);
257
  rb = get_rtt_of(b);
258 258
  if ((isnan(ra) && isnan(rb)) || ra == rb) return 0;
259 259
  else if (isnan(rb) || ra < rb) return -1;
260 260
  else return 1;

Also available in: Unified diff