[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: add statistics for packets
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: add statistics for packets dropped by cadet due to full buffer |
Date: |
Fri, 27 Jan 2017 17:29:17 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 80f333649 add statistics for packets dropped by cadet due to full
buffer
80f333649 is described below
commit 80f33364925f6718673dafaf7f06940c2b06af06
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jan 27 17:29:15 2017 +0100
add statistics for packets dropped by cadet due to full buffer
---
src/cadet/gnunet-service-cadet-new_core.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/cadet/gnunet-service-cadet-new_core.c
b/src/cadet/gnunet-service-cadet-new_core.c
index 086337c9a..b5b3b6558 100644
--- a/src/cadet/gnunet-service-cadet-new_core.c
+++ b/src/cadet/gnunet-service-cadet-new_core.c
@@ -210,7 +210,11 @@ route_message (struct CadetPeer *prev,
GCP_2s (prev),
GNUNET_i2s (GCP_get_id (dir->hop)),
GNUNET_sh2s (&cid->connection_of_tunnel));
- GNUNET_assert (dir->out_rpos == dir->out_wpos);
+ GNUNET_STATISTICS_update (stats,
+ "# messages dropped due to full buffer",
+ 1,
+ GNUNET_NO);
+ GNUNET_assert (dir->out_rpos == dir->out_wpos);
GNUNET_MQ_discard (env);
dir->out_rpos++;
if (ROUTE_BUFFER_SIZE == dir->out_rpos)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: add statistics for packets dropped by cadet due to full buffer,
gnunet <=