diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-07-08 17:13:22 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-07-08 17:13:22 +0000 |
commit | 7c5ff01102473d922816d1cedd44ddcd4f7d7bd9 (patch) | |
tree | 68c779f0efa837c6fdeed60bad4478ccd8423c8f /src/dv/gnunet-service-dv.c | |
parent | 4608cc37d729cff2cdd998053d3e75fda73d892a (diff) | |
download | gnunet-7c5ff01102473d922816d1cedd44ddcd4f7d7bd9.tar.gz gnunet-7c5ff01102473d922816d1cedd44ddcd4f7d7bd9.zip |
Diffstat (limited to 'src/dv/gnunet-service-dv.c')
-rw-r--r-- | src/dv/gnunet-service-dv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c index 844e44b6f..f72e332b7 100644 --- a/src/dv/gnunet-service-dv.c +++ b/src/dv/gnunet-service-dv.c | |||
@@ -2426,7 +2426,6 @@ addUpdateNeighbor (const struct GNUNET_PeerIdentity * peer, | |||
2426 | &update_matching_neighbors, | 2426 | &update_matching_neighbors, |
2427 | neighbor_update) != GNUNET_SYSERR)) | 2427 | neighbor_update) != GNUNET_SYSERR)) |
2428 | { | 2428 | { |
2429 | |||
2430 | #if AT_MOST_ONE | 2429 | #if AT_MOST_ONE |
2431 | if ((neighbor != NULL) && (cost < neighbor->cost)) /* New cost is less than old, remove old */ | 2430 | if ((neighbor != NULL) && (cost < neighbor->cost)) /* New cost is less than old, remove old */ |
2432 | { | 2431 | { |
@@ -2954,9 +2953,7 @@ handle_core_connect (void *cls, | |||
2954 | { | 2953 | { |
2955 | sent = GNUNET_CONTAINER_multihashmap_iterate(direct_neighbors, &add_distant_all_direct_neighbors, about); | 2954 | sent = GNUNET_CONTAINER_multihashmap_iterate(direct_neighbors, &add_distant_all_direct_neighbors, about); |
2956 | if (stats != NULL) | 2955 | if (stats != NULL) |
2957 | { | 2956 | GNUNET_STATISTICS_update (stats, "# direct peers gossiped to new direct neighbors", sent, GNUNET_NO); |
2958 | GNUNET_STATISTICS_update (stats, "# direct peers gossiped to new direct neighbors", sent, GNUNET_NO); | ||
2959 | } | ||
2960 | } | 2957 | } |
2961 | #if DEBUG_DV | 2958 | #if DEBUG_DV |
2962 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2959 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -3098,7 +3095,7 @@ run (void *cls, | |||
3098 | coreMST = GNUNET_SERVER_mst_create (&tokenized_message_handler, | 3095 | coreMST = GNUNET_SERVER_mst_create (&tokenized_message_handler, |
3099 | NULL); | 3096 | NULL); |
3100 | 3097 | ||
3101 | peerinfo_handle = GNUNET_PEERINFO_connect(cfg); | 3098 | peerinfo_handle = GNUNET_PEERINFO_connect(cfg); |
3102 | 3099 | ||
3103 | if (peerinfo_handle == NULL) | 3100 | if (peerinfo_handle == NULL) |
3104 | { | 3101 | { |