From: Nathan S. Evans Date: Tue, 14 Jun 2011 12:50:41 +0000 (+0000) Subject: update instead of set stats values X-Git-Tag: initial-import-from-subversion-38251~18218 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d5ac81b56e4bfd8639926c42e1af2fea74da8af;p=oweals%2Fgnunet.git update instead of set stats values --- diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 9e8766f10..1773aea7e 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -3929,10 +3929,10 @@ deliver_message (void *cls, sizeof(buf), gettext_noop ("# bytes of messages of type %u received"), (unsigned int) type); - GNUNET_STATISTICS_set (stats, - buf, - msize, - GNUNET_NO); + GNUNET_STATISTICS_update (stats, + buf, + msize, + GNUNET_NO); dropped = GNUNET_YES; cpos = clients; while (cpos != NULL) @@ -4135,10 +4135,10 @@ handle_encrypted_message (struct Neighbour *n, = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_divide (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, 2), &send_keep_alive, n); - GNUNET_STATISTICS_set (stats, - gettext_noop ("# bytes of payload decrypted"), - size - sizeof (struct EncryptedMessage), - GNUNET_NO); + GNUNET_STATISTICS_update (stats, + gettext_noop ("# bytes of payload decrypted"), + size - sizeof (struct EncryptedMessage), + GNUNET_NO); handle_peer_status_change (n); update_neighbour_performance (n, ats, ats_count); if (GNUNET_OK != GNUNET_SERVER_mst_receive (mst,