GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Received duplicate message, ignoring.\n");
/* duplicate, ignore */
- GNUNET_STATISTICS_set (stats,
- gettext_noop ("# bytes dropped (duplicates)"),
- size,
- GNUNET_NO);
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# bytes dropped (duplicates)"),
+ size,
+ GNUNET_NO);
return;
}
if ((n->last_sequence_number_received > snum) &&
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Received ancient out of sequence message, ignoring.\n");
/* ancient out of sequence, ignore */
- GNUNET_STATISTICS_set (stats,
- gettext_noop ("# bytes dropped (out of sequence)"),
- size,
- GNUNET_NO);
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# bytes dropped (out of sequence)"),
+ size,
+ GNUNET_NO);
return;
}
if (n->last_sequence_number_received > snum)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Received duplicate message, ignoring.\n");
- GNUNET_STATISTICS_set (stats,
- gettext_noop ("# bytes dropped (duplicates)"),
- size,
- GNUNET_NO);
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# bytes dropped (duplicates)"),
+ size,
+ GNUNET_NO);
/* duplicate, ignore */
return;
}
_
("Message received far too old (%llu ms). Content ignored.\n"),
GNUNET_TIME_absolute_get_duration (t).rel_value);
- GNUNET_STATISTICS_set (stats,
- gettext_noop ("# bytes dropped (ancient message)"),
- size,
- GNUNET_NO);
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# bytes dropped (ancient message)"),
+ size,
+ GNUNET_NO);
return;
}