From b567a7a9231f91f0c5f7c074bb6904471e3f85ad Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 28 Feb 2017 14:56:37 +0100 Subject: [PATCH] more stats for happy Florian --- src/cadet/gnunet-service-cadet-new.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cadet/gnunet-service-cadet-new.c b/src/cadet/gnunet-service-cadet-new.c index 02126d57d..93f53de4c 100644 --- a/src/cadet/gnunet-service-cadet-new.c +++ b/src/cadet/gnunet-service-cadet-new.c @@ -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", -- 2.25.1