From: Christian Grothoff Date: Thu, 17 Nov 2011 14:47:41 +0000 (+0000) Subject: only use good acks for delay calculation X-Git-Tag: initial-import-from-subversion-38251~15894 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=deb59bbfa36a8fb3b825abab00b0c92a60015e87;p=oweals%2Fgnunet.git only use good acks for delay calculation --- 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;