Fix "# friends connected" counter.
authorDavid Barksdale <amatus.amongus@gmail.com>
Wed, 20 Oct 2010 22:09:43 +0000 (22:09 +0000)
committerDavid Barksdale <amatus.amongus@gmail.com>
Wed, 20 Oct 2010 22:09:43 +0000 (22:09 +0000)
src/topology/gnunet-daemon-topology.c

index 3686f20184ad053b1b715a1827c94a6a17eef7e8..5425c5e49d34ab0647789989220e3421484b9c2a 100644 (file)
@@ -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) ||