[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35055 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35055 - gnunet/src/ats |
Date: |
Sun, 1 Feb 2015 19:31:01 +0100 |
Author: amatus
Date: 2015-02-01 19:31:01 +0100 (Sun, 01 Feb 2015)
New Revision: 35055
Modified:
gnunet/src/ats/plugin_ats_proportional.c
Log:
Use configured stability factor, not constant
Modified: gnunet/src/ats/plugin_ats_proportional.c
===================================================================
--- gnunet/src/ats/plugin_ats_proportional.c 2015-02-01 18:08:17 UTC (rev
35054)
+++ gnunet/src/ats/plugin_ats_proportional.c 2015-02-01 18:31:01 UTC (rev
35055)
@@ -776,7 +776,7 @@
GNUNET_assert (asi->activated.abs_value_us !=
GNUNET_TIME_UNIT_ZERO_ABS.abs_value_us);
active_time = GNUNET_TIME_absolute_get_duration (asi->activated);
min_active_time.rel_value_us = ((double)
GNUNET_TIME_UNIT_SECONDS.rel_value_us) *
- PROP_STABILITY_FACTOR;
+ ctx->s->stability_factor;
if (active_time.rel_value_us <= min_active_time.rel_value_us)
{
/* Keep active address for stability reasons */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35055 - gnunet/src/ats,
gnunet <=