}
if (DIRECT_NEIGHBOR_COST != distance)
return; /* is a DV-neighbor */
+ GNUNET_STATISTICS_update (stats,
+ "# peers connected (1-hop)",
+ -1 1, GNUNET_NO);
neighbor = GNUNET_malloc (sizeof (struct DirectNeighbor));
neighbor->peer = *peer;
GNUNET_assert (GNUNET_YES ==
/* must have been a DV-neighbor, ignore */
return;
}
+ GNUNET_STATISTICS_update (stats,
+ "# peers connected (1-hop)",
+ -1 1, GNUNET_NO);
cleanup_neighbor (neighbor);
GNUNET_CONTAINER_multihashmap_iterate (direct_neighbors,
&refresh_routes,