[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24017 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24017 - gnunet/src/transport |
Date: |
Wed, 26 Sep 2012 15:51:11 +0200 |
Author: wachs
Date: 2012-09-26 15:51:11 +0200 (Wed, 26 Sep 2012)
New Revision: 24017
Modified:
gnunet/src/transport/plugin_transport_wlan.c
Log:
WLAN stats
Modified: gnunet/src/transport/plugin_transport_wlan.c
===================================================================
--- gnunet/src/transport/plugin_transport_wlan.c 2012-09-26 13:39:45 UTC
(rev 24016)
+++ gnunet/src/transport/plugin_transport_wlan.c 2012-09-26 13:51:11 UTC
(rev 24017)
@@ -706,6 +706,7 @@
{
struct FragmentMessage *fm = cls;
+
fm->sh = NULL;
GNUNET_FRAGMENT_context_transmission_done (fm->fragcontext);
}
@@ -749,6 +750,12 @@
1, GNUNET_NO);
else
GNUNET_FRAGMENT_context_transmission_done (fm->fragcontext);
+ GNUNET_STATISTICS_update (endpoint->plugin->env->stats,
+ "# bytes currently in WLAN buffers",
+ -msize, GNUNET_NO);
+ GNUNET_STATISTICS_update (endpoint->plugin->env->stats,
+ "# bytes transmitted via WLAN",
+ msize, GNUNET_NO);
}
}
@@ -1063,6 +1070,11 @@
wlanheader->target = session->target;
wlanheader->crc = htonl (GNUNET_CRYPTO_crc32_n (msgbuf, msgbuf_size));
memcpy (&wlanheader[1], msgbuf, msgbuf_size);
+
+ GNUNET_STATISTICS_update (plugin->env->stats,
+ "# bytes currently in WLAN buffers",
+ msgbuf_size, GNUNET_NO);
+
send_with_fragmentation (session->mac,
to,
&session->target,
@@ -1099,6 +1111,11 @@
ats[1].type = htonl (GNUNET_ATS_NETWORK_TYPE);
ats[1].value = htonl (GNUNET_ATS_NET_WLAN);
msize = ntohs (hdr->size);
+
+ GNUNET_STATISTICS_update (plugin->env->stats,
+ "# bytes received via WLAN",
+ msize, GNUNET_NO);
+
switch (ntohs (hdr->type))
{
case GNUNET_MESSAGE_TYPE_HELLO:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24017 - gnunet/src/transport,
gnunet <=