diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-06-14 12:52:34 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-06-14 12:52:34 +0000 |
commit | 5e4212497f8388306d6162b43c1cca949b3c5c0a (patch) | |
tree | b92cbf648717cd60b4dab04b758d666be6a03f56 /src/core | |
parent | 2d5ac81b56e4bfd8639926c42e1af2fea74da8af (diff) | |
download | gnunet-5e4212497f8388306d6162b43c1cca949b3c5c0a.tar.gz gnunet-5e4212497f8388306d6162b43c1cca949b3c5c0a.zip |
update instead of set stats values
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gnunet-service-core.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 1773aea7e..19758c5b3 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c | |||
@@ -4049,10 +4049,10 @@ handle_encrypted_message (struct Neighbour *n, | |||
4049 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 4049 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
4050 | "Received duplicate message, ignoring.\n"); | 4050 | "Received duplicate message, ignoring.\n"); |
4051 | /* duplicate, ignore */ | 4051 | /* duplicate, ignore */ |
4052 | GNUNET_STATISTICS_set (stats, | 4052 | GNUNET_STATISTICS_update (stats, |
4053 | gettext_noop ("# bytes dropped (duplicates)"), | 4053 | gettext_noop ("# bytes dropped (duplicates)"), |
4054 | size, | 4054 | size, |
4055 | GNUNET_NO); | 4055 | GNUNET_NO); |
4056 | return; | 4056 | return; |
4057 | } | 4057 | } |
4058 | if ((n->last_sequence_number_received > snum) && | 4058 | if ((n->last_sequence_number_received > snum) && |
@@ -4061,10 +4061,10 @@ handle_encrypted_message (struct Neighbour *n, | |||
4061 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 4061 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
4062 | "Received ancient out of sequence message, ignoring.\n"); | 4062 | "Received ancient out of sequence message, ignoring.\n"); |
4063 | /* ancient out of sequence, ignore */ | 4063 | /* ancient out of sequence, ignore */ |
4064 | GNUNET_STATISTICS_set (stats, | 4064 | GNUNET_STATISTICS_update (stats, |
4065 | gettext_noop ("# bytes dropped (out of sequence)"), | 4065 | gettext_noop ("# bytes dropped (out of sequence)"), |
4066 | size, | 4066 | size, |
4067 | GNUNET_NO); | 4067 | GNUNET_NO); |
4068 | return; | 4068 | return; |
4069 | } | 4069 | } |
4070 | if (n->last_sequence_number_received > snum) | 4070 | if (n->last_sequence_number_received > snum) |
@@ -4075,10 +4075,10 @@ handle_encrypted_message (struct Neighbour *n, | |||
4075 | { | 4075 | { |
4076 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 4076 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
4077 | "Received duplicate message, ignoring.\n"); | 4077 | "Received duplicate message, ignoring.\n"); |
4078 | GNUNET_STATISTICS_set (stats, | 4078 | GNUNET_STATISTICS_update (stats, |
4079 | gettext_noop ("# bytes dropped (duplicates)"), | 4079 | gettext_noop ("# bytes dropped (duplicates)"), |
4080 | size, | 4080 | size, |
4081 | GNUNET_NO); | 4081 | GNUNET_NO); |
4082 | /* duplicate, ignore */ | 4082 | /* duplicate, ignore */ |
4083 | return; | 4083 | return; |
4084 | } | 4084 | } |
@@ -4102,10 +4102,10 @@ handle_encrypted_message (struct Neighbour *n, | |||
4102 | _ | 4102 | _ |
4103 | ("Message received far too old (%llu ms). Content ignored.\n"), | 4103 | ("Message received far too old (%llu ms). Content ignored.\n"), |
4104 | GNUNET_TIME_absolute_get_duration (t).rel_value); | 4104 | GNUNET_TIME_absolute_get_duration (t).rel_value); |
4105 | GNUNET_STATISTICS_set (stats, | 4105 | GNUNET_STATISTICS_update (stats, |
4106 | gettext_noop ("# bytes dropped (ancient message)"), | 4106 | gettext_noop ("# bytes dropped (ancient message)"), |
4107 | size, | 4107 | size, |
4108 | GNUNET_NO); | 4108 | GNUNET_NO); |
4109 | return; | 4109 | return; |
4110 | } | 4110 | } |
4111 | 4111 | ||