more stats for happy Florian
authorChristian Grothoff <christian@grothoff.org>
Tue, 28 Feb 2017 13:56:37 +0000 (14:56 +0100)
committerChristian Grothoff <christian@grothoff.org>
Tue, 28 Feb 2017 13:56:37 +0000 (14:56 +0100)
src/cadet/gnunet-service-cadet-new.c

index 02126d57d31451be85c24dd66e1e76d94c05ac4c..93f53de4c8074ddb6ac0fad1f65345a514d923fb 100644 (file)
@@ -724,6 +724,10 @@ handle_local_data (void *cls,
     return;
   }
   payload_size = ntohs (msg->header.size) - sizeof (*msg);
+  GNUNET_STATISTICS_update (stats,
+                            "# payload received from clients",
+                            payload_size,
+                            GNUNET_NO);
   buf = (const char *) &msg[1];
   LOG (GNUNET_ERROR_TYPE_DEBUG,
        "Received %u bytes payload from %s for %s\n",