diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2010-10-20 22:09:43 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2010-10-20 22:09:43 +0000 |
commit | 3268944731b482ea3b802621b3ae714291a61509 (patch) | |
tree | f7845745c863728e485b8e7cdcfc0bf5daab57c5 /src/topology | |
parent | d7d1b650a79d113830ddd5e55e2e8c324af0882a (diff) | |
download | gnunet-3268944731b482ea3b802621b3ae714291a61509.tar.gz gnunet-3268944731b482ea3b802621b3ae714291a61509.zip |
Fix "# friends connected" counter.
Diffstat (limited to 'src/topology')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 5 |
1 files 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, | |||
652 | next_want, | 652 | next_want, |
653 | &hello_advertising_ready, | 653 | &hello_advertising_ready, |
654 | pl); | 654 | pl); |
655 | return; | ||
656 | } | 655 | } |
657 | } | 656 | } |
658 | 657 | ||
@@ -746,7 +745,7 @@ connect_notify (void *cls, | |||
746 | friend_count++; | 745 | friend_count++; |
747 | GNUNET_STATISTICS_set (stats, | 746 | GNUNET_STATISTICS_set (stats, |
748 | gettext_noop ("# friends connected"), | 747 | gettext_noop ("# friends connected"), |
749 | connection_count, | 748 | friend_count, |
750 | GNUNET_NO); | 749 | GNUNET_NO); |
751 | } | 750 | } |
752 | reschedule_hellos (NULL, &peer->hashPubKey, pos); | 751 | reschedule_hellos (NULL, &peer->hashPubKey, pos); |
@@ -813,7 +812,7 @@ disconnect_notify (void *cls, | |||
813 | friend_count--; | 812 | friend_count--; |
814 | GNUNET_STATISTICS_set (stats, | 813 | GNUNET_STATISTICS_set (stats, |
815 | gettext_noop ("# friends connected"), | 814 | gettext_noop ("# friends connected"), |
816 | connection_count, | 815 | friend_count, |
817 | GNUNET_NO); | 816 | GNUNET_NO); |
818 | } | 817 | } |
819 | if ( (connection_count < target_connection_count) || | 818 | if ( (connection_count < target_connection_count) || |