aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2011-06-14 12:50:41 +0000
committerNathan S. Evans <evans@in.tum.de>2011-06-14 12:50:41 +0000
commit2d5ac81b56e4bfd8639926c42e1af2fea74da8af (patch)
treee42060e7b3a36e507b5cb1f2d918c62b91250d73 /src/core
parent3be4dd56db267ca992f3abec7adb9351ae636321 (diff)
downloadgnunet-2d5ac81b56e4bfd8639926c42e1af2fea74da8af.tar.gz
gnunet-2d5ac81b56e4bfd8639926c42e1af2fea74da8af.zip
update instead of set stats values
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core.c16
1 files changed, 8 insertions, 8 deletions
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,
3929 sizeof(buf), 3929 sizeof(buf),
3930 gettext_noop ("# bytes of messages of type %u received"), 3930 gettext_noop ("# bytes of messages of type %u received"),
3931 (unsigned int) type); 3931 (unsigned int) type);
3932 GNUNET_STATISTICS_set (stats, 3932 GNUNET_STATISTICS_update (stats,
3933 buf, 3933 buf,
3934 msize, 3934 msize,
3935 GNUNET_NO); 3935 GNUNET_NO);
3936 dropped = GNUNET_YES; 3936 dropped = GNUNET_YES;
3937 cpos = clients; 3937 cpos = clients;
3938 while (cpos != NULL) 3938 while (cpos != NULL)
@@ -4135,10 +4135,10 @@ handle_encrypted_message (struct Neighbour *n,
4135 = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_divide (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, 2), 4135 = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_divide (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, 2),
4136 &send_keep_alive, 4136 &send_keep_alive,
4137 n); 4137 n);
4138 GNUNET_STATISTICS_set (stats, 4138 GNUNET_STATISTICS_update (stats,
4139 gettext_noop ("# bytes of payload decrypted"), 4139 gettext_noop ("# bytes of payload decrypted"),
4140 size - sizeof (struct EncryptedMessage), 4140 size - sizeof (struct EncryptedMessage),
4141 GNUNET_NO); 4141 GNUNET_NO);
4142 handle_peer_status_change (n); 4142 handle_peer_status_change (n);
4143 update_neighbour_performance (n, ats, ats_count); 4143 update_neighbour_performance (n, ats, ats_count);
4144 if (GNUNET_OK != GNUNET_SERVER_mst_receive (mst, 4144 if (GNUNET_OK != GNUNET_SERVER_mst_receive (mst,