From deb59bbfa36a8fb3b825abab00b0c92a60015e87 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 17 Nov 2011 14:47:41 +0000 Subject: [PATCH] only use good acks for delay calculation --- src/fragmentation/fragmentation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c index 47b8a1929..c7207cb12 100644 --- a/src/fragmentation/fragmentation.c +++ b/src/fragmentation/fragmentation.c @@ -324,7 +324,8 @@ GNUNET_FRAGMENT_process_ack (struct GNUNET_FRAGMENT_Context *fc, if (ntohl (fa->fragment_id) != fc->fragment_id) return GNUNET_SYSERR; /* not our ACK */ abits = GNUNET_ntohll (fa->bits); - if (GNUNET_YES == fc->wack) + if ( (GNUNET_YES == fc->wack) && + (abits == (fc->acks & abits)) ) { /* normal ACK, can update running average of delay... */ fc->wack = GNUNET_NO; -- 2.25.1