diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-27 22:27:31 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-27 22:27:31 +0100 |
commit | 58beb5ec4ca0dae1e9adc8617c9d69e5b558b9cc (patch) | |
tree | c68287623cc064a576470c13264cf844451651f1 /src/cadet/test_cadet.c | |
parent | b9ea024cbe97dc152624a9c18717246cda49c25f (diff) | |
download | gnunet-58beb5ec4ca0dae1e9adc8617c9d69e5b558b9cc.tar.gz gnunet-58beb5ec4ca0dae1e9adc8617c9d69e5b558b9cc.zip |
also count messages dropped due to slow clients as allowable losses in unreliable mode
Diffstat (limited to 'src/cadet/test_cadet.c')
-rw-r--r-- | src/cadet/test_cadet.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c index 79d9423fd..9957d9021 100644 --- a/src/cadet/test_cadet.c +++ b/src/cadet/test_cadet.c | |||
@@ -395,7 +395,8 @@ stats_iterator (void *cls, | |||
395 | { | 395 | { |
396 | static const char *s_sent = "# keepalives sent"; | 396 | static const char *s_sent = "# keepalives sent"; |
397 | static const char *s_recv = "# keepalives received"; | 397 | static const char *s_recv = "# keepalives received"; |
398 | static const char *drops = "# messages dropped due to full buffer"; | 398 | static const char *rdrops = "# messages dropped due to full buffer"; |
399 | static const char *cdrops = "# messages dropped due to slow client"; | ||
399 | uint32_t i; | 400 | uint32_t i; |
400 | 401 | ||
401 | i = GNUNET_TESTBED_get_index (peer); | 402 | i = GNUNET_TESTBED_get_index (peer); |
@@ -409,7 +410,9 @@ stats_iterator (void *cls, | |||
409 | ka_sent = value; | 410 | ka_sent = value; |
410 | if (0 == strncmp(s_recv, name, strlen (s_recv)) && peers_requested - 1 == i) | 411 | if (0 == strncmp(s_recv, name, strlen (s_recv)) && peers_requested - 1 == i) |
411 | ka_received = value; | 412 | ka_received = value; |
412 | if (0 == strncmp(drops, name, strlen (drops))) | 413 | if (0 == strncmp(rdrops, name, strlen (rdrops))) |
414 | msg_dropped += value; | ||
415 | if (0 == strncmp(cdrops, name, strlen (cdrops))) | ||
413 | msg_dropped += value; | 416 | msg_dropped += value; |
414 | 417 | ||
415 | return GNUNET_OK; | 418 | return GNUNET_OK; |