-more uniform statistics naming
authorChristian Grothoff <christian@grothoff.org>
Sun, 27 May 2012 19:46:50 +0000 (19:46 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 27 May 2012 19:46:50 +0000 (19:46 +0000)
src/dht/gnunet-service-dht_neighbours.c
src/nse/gnunet-service-nse.c

index 3d148270d35301584a87a55fc2471e9e4c3c16c2..083b499230d734f3157cf80cad7d8bcd97b7aeda 100644 (file)
@@ -622,7 +622,7 @@ handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
     GNUNET_break (0);
     return;
   }
-  GNUNET_STATISTICS_update (GDS_stats, gettext_noop ("# Peers connected"), 1,
+  GNUNET_STATISTICS_update (GDS_stats, gettext_noop ("# peers connected"), 1,
                             GNUNET_NO);
   peer_bucket = find_bucket (&peer->hashPubKey);
   GNUNET_assert ((peer_bucket >= 0) && (peer_bucket < MAX_BUCKETS));
@@ -680,7 +680,7 @@ handle_core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
     GNUNET_break (0);
     return;
   }
-  GNUNET_STATISTICS_update (GDS_stats, gettext_noop ("# Peers connected"), -1,
+  GNUNET_STATISTICS_update (GDS_stats, gettext_noop ("# peers connected"), -1,
                             GNUNET_NO);
   GNUNET_assert (GNUNET_YES ==
                  GNUNET_CONTAINER_multihashmap_remove (all_known_peers,
index 6fc45273e21950fbecdfa8adc9d58aa590c4752f..9c31ab8e22795577c4bc879ab3ae2218bf6d3ab0 100644 (file)
@@ -1197,7 +1197,7 @@ handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
   peer_entry->transmit_task =
       GNUNET_SCHEDULER_add_delayed (get_transmit_delay (-1), &transmit_task_cb,
                                     peer_entry);
-  GNUNET_STATISTICS_update (stats, "# peers", 1, GNUNET_NO);
+  GNUNET_STATISTICS_update (stats, "# peers connected", 1, GNUNET_NO);
 }
 
 
@@ -1234,7 +1234,7 @@ handle_core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
     pos->th = NULL;
   }
   GNUNET_free (pos);
-  GNUNET_STATISTICS_update (stats, "# peers", -1, GNUNET_NO);
+  GNUNET_STATISTICS_update (stats, "# peers connected", -1, GNUNET_NO);
 }