diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-17 14:54:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-17 14:54:55 +0000 |
commit | 8b4f9484ce8fa5a050456993c25f80b6de0618b7 (patch) | |
tree | 66da342411ad6990b3d99476cfd5e2c88a236c18 /src/fragmentation | |
parent | 4c281c84a30b4b6c800451e452abec2bf9626634 (diff) | |
download | gnunet-8b4f9484ce8fa5a050456993c25f80b6de0618b7.tar.gz gnunet-8b4f9484ce8fa5a050456993c25f80b6de0618b7.zip |
consider number of retransmissions for delay calculation
Diffstat (limited to 'src/fragmentation')
-rw-r--r-- | src/fragmentation/fragmentation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c index 522084048..e5b11f5d9 100644 --- a/src/fragmentation/fragmentation.c +++ b/src/fragmentation/fragmentation.c | |||
@@ -208,7 +208,7 @@ transmit_next (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
208 | fc->num_rounds++; | 208 | fc->num_rounds++; |
209 | delay = | 209 | delay = |
210 | GNUNET_TIME_relative_max (GNUNET_TIME_relative_multiply (delay, 2), | 210 | GNUNET_TIME_relative_max (GNUNET_TIME_relative_multiply (delay, 2), |
211 | GNUNET_TIME_relative_multiply (fc->delay, fc->num_rounds); | 211 | GNUNET_TIME_relative_multiply (fc->delay, fc->num_rounds)); |
212 | /* never use zero, need some time for ACK always */ | 212 | /* never use zero, need some time for ACK always */ |
213 | delay = GNUNET_TIME_relative_max (GNUNET_TIME_UNIT_MILLISECONDS, delay); | 213 | delay = GNUNET_TIME_relative_max (GNUNET_TIME_UNIT_MILLISECONDS, delay); |
214 | fc->last_round = GNUNET_TIME_absolute_get (); | 214 | fc->last_round = GNUNET_TIME_absolute_get (); |