[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: properly calculate min_rela
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: properly calculate min_relative_record_time without imposing global max, use constant from DHT API where applicable instead of defining our own |
Date: |
Sun, 13 May 2018 18:33:45 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new fb77da947 properly calculate min_relative_record_time without imposing
global max, use constant from DHT API where applicable instead of defining our
own
fb77da947 is described below
commit fb77da9477657e2dc077595da2b2a38c52d2123e
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun May 13 18:33:43 2018 +0200
properly calculate min_relative_record_time without imposing global max,
use constant from DHT API where applicable instead of defining our own
---
src/zonemaster/gnunet-service-zonemaster.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/src/zonemaster/gnunet-service-zonemaster.c
b/src/zonemaster/gnunet-service-zonemaster.c
index 78b903bd2..0a562beb1 100644
--- a/src/zonemaster/gnunet-service-zonemaster.c
+++ b/src/zonemaster/gnunet-service-zonemaster.c
@@ -76,12 +76,6 @@
#define MAXIMUM_ZONE_ITERATION_INTERVAL GNUNET_TIME_relative_multiply
(GNUNET_TIME_UNIT_MINUTES, 15)
/**
- * The default put interval for the zone iteration. In case
- * no option is found
- */
-#define DEFAULT_ZONE_PUBLISH_TIME_WINDOW GNUNET_TIME_relative_multiply
(GNUNET_TIME_UNIT_HOURS, 4)
-
-/**
* The factor the current zone iteration interval is divided by for each
* additional new record
*/
@@ -684,8 +678,7 @@ zone_iteration_finished (void *cls)
calculate_put_interval ();
/* reset for next iteration */
min_relative_record_time
- = GNUNET_TIME_relative_multiply (GNUNET_DHT_DEFAULT_REPUBLISH_FREQUENCY,
- PUBLISH_OPS_PER_EXPIRATION);
+ = GNUNET_TIME_UNIT_FOREVER_REL;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Zone iteration finished. Adjusted zone iteration interval to
%s\n",
GNUNET_STRINGS_relative_time_to_string
(target_iteration_velocity_per_record,
@@ -838,8 +831,7 @@ run (void *cls,
(void) service;
last_put_100 = GNUNET_TIME_absolute_get (); /* first time! */
min_relative_record_time
- = GNUNET_TIME_relative_multiply (GNUNET_DHT_DEFAULT_REPUBLISH_FREQUENCY,
- PUBLISH_OPS_PER_EXPIRATION);
+ = GNUNET_TIME_UNIT_FOREVER_REL;
target_iteration_velocity_per_record = INITIAL_ZONE_ITERATION_INTERVAL;
namestore_handle = GNUNET_NAMESTORE_connect (c);
if (NULL == namestore_handle)
@@ -852,7 +844,7 @@ run (void *cls,
cache_keys = GNUNET_CONFIGURATION_get_value_yesno (c,
"namestore",
"CACHE_KEYS");
- zone_publish_time_window_default = DEFAULT_ZONE_PUBLISH_TIME_WINDOW;
+ zone_publish_time_window_default = GNUNET_DHT_DEFAULT_REPUBLISH_FREQUENCY;
if (GNUNET_OK ==
GNUNET_CONFIGURATION_get_value_time (c,
"zonemaster",
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: properly calculate min_relative_record_time without imposing global max, use constant from DHT API where applicable instead of defining our own,
gnunet <=