aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-09-27 09:19:47 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-09-27 09:19:47 +0000
commit7ed9a8983b650646a2b6bd46ae05d57c5a821168 (patch)
tree38e86fec4cd1c13be5b41ddc6af84ebd27bf0ad7 /src/transport
parent3b09b6e8c19dd20f855d370503768fe48df6e0e8 (diff)
downloadgnunet-7ed9a8983b650646a2b6bd46ae05d57c5a821168.tar.gz
gnunet-7ed9a8983b650646a2b6bd46ae05d57c5a821168.zip
new statistics value to measure payload
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/plugin_transport_udp.c8
1 files 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,
1236 GNUNET_STATISTICS_update (plugin->env->stats, 1236 GNUNET_STATISTICS_update (plugin->env->stats,
1237 "# bytes currently in UDP buffers", 1237 "# bytes currently in UDP buffers",
1238 msgbuf_size, GNUNET_NO); 1238 msgbuf_size, GNUNET_NO);
1239 GNUNET_STATISTICS_update (plugin->env->stats,
1240 "# bytes payload asked to transmit via UDP",
1241 msgbuf_size, GNUNET_NO);
1242
1239 1243
1240 /* Message */ 1244 /* Message */
1241 udp = (struct UDPMessage *) mbuf; 1245 udp = (struct UDPMessage *) mbuf;
@@ -1990,8 +1994,8 @@ udp_select_send (struct Plugin *plugin, struct GNUNET_NETWORK_Handle *sock)
1990 else 1994 else
1991 { 1995 {
1992 LOG (GNUNET_ERROR_TYPE_DEBUG, 1996 LOG (GNUNET_ERROR_TYPE_DEBUG,
1993 "UDP transmitted %u-byte message to `%s' (%d: %s)\n", 1997 "UDP transmitted %u-byte message to `%s' `%s' (%d: %s)\n",
1994 (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), (int) sent, 1998 (unsigned int) (udpw->msg_size), GNUNET_i2s(&udpw->session->target) ,GNUNET_a2s (sa, slen), (int) sent,
1995 (sent < 0) ? STRERROR (errno) : "ok"); 1999 (sent < 0) ? STRERROR (errno) : "ok");
1996 GNUNET_STATISTICS_update (plugin->env->stats, 2000 GNUNET_STATISTICS_update (plugin->env->stats,
1997 "# bytes transmitted via UDP", 2001 "# bytes transmitted via UDP",