From 9d2a3e313935fc50d82cab44ba5d49c3cfd3cc03 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 10 Jul 2014 08:51:20 +0000 Subject: [PATCH] improving documentation --- src/gns/gnunet-service-gns.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 50b370264..c98a7e528 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c @@ -536,12 +536,14 @@ put_gns_record (void *cls, } else { - zone_publish_time_window - = GNUNET_TIME_relative_min (GNUNET_TIME_relative_divide (min_relative_record_time, - 4), - zone_publish_time_window_default); + /* If records are present, next publication is based on the minimum + * relative expiration time of the records published divided by 4 + */ + zone_publish_time_window = GNUNET_TIME_relative_min ( + GNUNET_TIME_relative_divide (min_relative_record_time, 4), + zone_publish_time_window_default); put_interval = GNUNET_TIME_relative_divide (zone_publish_time_window, - num_public_records); + num_public_records); } /* reset for next iteration */ min_relative_record_time = GNUNET_TIME_UNIT_FOREVER_REL; @@ -599,7 +601,7 @@ put_gns_record (void *cls, /** - * Periodically iterate over our zone and store everything in dht + * Periodically iterate over all zones and store everything in DHT * * @param cls NULL * @param tc task context @@ -615,9 +617,8 @@ publish_zone_dht_start (void *cls, /* start counting again */ num_public_records = 0; namestore_iter = GNUNET_NAMESTORE_zone_iteration_start (namestore_handle, - NULL, /* All zones */ - &put_gns_record, - NULL); + NULL, /* All zones */ + &put_gns_record, NULL ); } -- 2.25.1