[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24856 - gnunet/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24856 - gnunet/src/core |
Date: |
Fri, 9 Nov 2012 12:12:14 +0100 |
Author: grothoff
Date: 2012-11-09 12:12:14 +0100 (Fri, 09 Nov 2012)
New Revision: 24856
Modified:
gnunet/src/core/gnunet-service-core_clients.c
Log:
-fix message recv accounting
Modified: gnunet/src/core/gnunet-service-core_clients.c
===================================================================
--- gnunet/src/core/gnunet-service-core_clients.c 2012-11-08 21:35:38 UTC
(rev 24855)
+++ gnunet/src/core/gnunet-service-core_clients.c 2012-11-09 11:12:14 UTC
(rev 24856)
@@ -512,7 +512,12 @@
{
struct TokenizerContext *tc = client;
struct GSC_ClientActiveRequest *car = tc->car;
+ char buf[92];
+ GNUNET_snprintf (buf, sizeof (buf),
+ gettext_noop ("# bytes of messages of type %u received"),
+ (unsigned int) ntohs (message->type));
+ GNUNET_STATISTICS_update (GSC_stats, buf, ntohs (message->size), GNUNET_NO);
if (0 ==
memcmp (&car->target, &GSC_my_identity,
sizeof (struct GNUNET_PeerIdentity)))
@@ -812,13 +817,6 @@
struct NotifyTrafficMessage *ntm;
struct GNUNET_ATS_Information *a;
- if (0 == options)
- {
- GNUNET_snprintf (buf, sizeof (buf),
- gettext_noop ("# bytes of messages of type %u received"),
- (unsigned int) ntohs (msg->type));
- GNUNET_STATISTICS_update (GSC_stats, buf, msize, GNUNET_NO);
- }
if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
{
GNUNET_break (0);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24856 - gnunet/src/core,
gnunet <=