From: David Barksdale Date: Wed, 20 Oct 2010 22:09:43 +0000 (+0000) Subject: Fix "# friends connected" counter. X-Git-Tag: initial-import-from-subversion-38251~20008 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3268944731b482ea3b802621b3ae714291a61509;p=oweals%2Fgnunet.git Fix "# friends connected" counter. --- diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 3686f2018..5425c5e49 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c @@ -652,7 +652,6 @@ schedule_next_hello (void *cls, next_want, &hello_advertising_ready, pl); - return; } } @@ -746,7 +745,7 @@ connect_notify (void *cls, friend_count++; GNUNET_STATISTICS_set (stats, gettext_noop ("# friends connected"), - connection_count, + friend_count, GNUNET_NO); } reschedule_hellos (NULL, &peer->hashPubKey, pos); @@ -813,7 +812,7 @@ disconnect_notify (void *cls, friend_count--; GNUNET_STATISTICS_set (stats, gettext_noop ("# friends connected"), - connection_count, + friend_count, GNUNET_NO); } if ( (connection_count < target_connection_count) ||