From 7ed9a8983b650646a2b6bd46ae05d57c5a821168 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 27 Sep 2012 09:19:47 +0000 Subject: [PATCH] new statistics value to measure payload --- src/transport/plugin_transport_udp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 74e46a50c..1520bf284 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1236,6 +1236,10 @@ udp_plugin_send (void *cls, GNUNET_STATISTICS_update (plugin->env->stats, "# bytes currently in UDP buffers", msgbuf_size, GNUNET_NO); + GNUNET_STATISTICS_update (plugin->env->stats, + "# bytes payload asked to transmit via UDP", + msgbuf_size, GNUNET_NO); + /* Message */ udp = (struct UDPMessage *) mbuf; @@ -1990,8 +1994,8 @@ udp_select_send (struct Plugin *plugin, struct GNUNET_NETWORK_Handle *sock) else { LOG (GNUNET_ERROR_TYPE_DEBUG, - "UDP transmitted %u-byte message to `%s' (%d: %s)\n", - (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), (int) sent, + "UDP transmitted %u-byte message to `%s' `%s' (%d: %s)\n", + (unsigned int) (udpw->msg_size), GNUNET_i2s(&udpw->session->target) ,GNUNET_a2s (sa, slen), (int) sent, (sent < 0) ? STRERROR (errno) : "ok"); GNUNET_STATISTICS_update (plugin->env->stats, "# bytes transmitted via UDP", -- 2.25.1