gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24487 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r24487 - gnunet/src/transport
Date: Tue, 23 Oct 2012 17:11:42 +0200

Author: wachs
Date: 2012-10-23 17:11:42 +0200 (Tue, 23 Oct 2012)
New Revision: 24487

Modified:
   gnunet/src/transport/plugin_transport_udp.c
Log:
timeout stats

Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2012-10-23 15:02:14 UTC (rev 
24486)
+++ gnunet/src/transport/plugin_transport_udp.c 2012-10-23 15:11:42 UTC (rev 
24487)
@@ -2197,6 +2197,12 @@
           GNUNET_STATISTICS_update (plugin->env->stats,
                                     "# UDP, total, messages, sent, timeout",
                                     1, GNUNET_NO);
+          GNUNET_STATISTICS_update (plugin->env->stats,
+                                    "# UDP, unfragmented msgs, messages, sent, 
timeout",
+                                    1, GNUNET_NO);
+          GNUNET_STATISTICS_update (plugin->env->stats,
+                                    "# UDP, unfragmented msgs, bytes, sent, 
timeout",
+                                    udpw->payload_size, GNUNET_NO);
           /* Not fragmented message */
           LOG (GNUNET_ERROR_TYPE_DEBUG,
                "Message for peer `%s' with size %u timed out\n",
@@ -2219,6 +2225,13 @@
                "Fragment for message for peer `%s' with size %u timed out\n",
                GNUNET_i2s(&udpw->session->target), 
udpw->frag_ctx->payload_size);
 
+
+          GNUNET_STATISTICS_update (plugin->env->stats,
+                                    "# UDP, fragmented msgs, messages, sent, 
timeout",
+                                    1, GNUNET_NO);
+          GNUNET_STATISTICS_update (plugin->env->stats,
+                                    "# UDP, fragmented msgs, bytes, sent, 
timeout",
+                                    udpw->frag_ctx->payload_size, GNUNET_NO);
           /* Remove fragmented message due to timeout */
           fragmented_message_done (udpw->frag_ctx, GNUNET_SYSERR);
           break;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]