From 3268944731b482ea3b802621b3ae714291a61509 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Wed, 20 Oct 2010 22:09:43 +0000 Subject: [PATCH] Fix "# friends connected" counter. --- src/topology/gnunet-daemon-topology.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) || -- 2.25.1