diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-07-10 08:51:20 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-07-10 08:51:20 +0000 |
commit | 9d2a3e313935fc50d82cab44ba5d49c3cfd3cc03 (patch) | |
tree | 226185dd19567709ac7f9021e38dc50429736689 /src/gns/gnunet-service-gns.c | |
parent | e5d7c67c647e9620c5c1ae77e133a74698443ee1 (diff) | |
download | gnunet-9d2a3e313935fc50d82cab44ba5d49c3cfd3cc03.tar.gz gnunet-9d2a3e313935fc50d82cab44ba5d49c3cfd3cc03.zip |
improving documentation
Diffstat (limited to 'src/gns/gnunet-service-gns.c')
-rw-r--r-- | src/gns/gnunet-service-gns.c | 19 |
1 files 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, | |||
536 | } | 536 | } |
537 | else | 537 | else |
538 | { | 538 | { |
539 | zone_publish_time_window | 539 | /* If records are present, next publication is based on the minimum |
540 | = GNUNET_TIME_relative_min (GNUNET_TIME_relative_divide (min_relative_record_time, | 540 | * relative expiration time of the records published divided by 4 |
541 | 4), | 541 | */ |
542 | zone_publish_time_window_default); | 542 | zone_publish_time_window = GNUNET_TIME_relative_min ( |
543 | GNUNET_TIME_relative_divide (min_relative_record_time, 4), | ||
544 | zone_publish_time_window_default); | ||
543 | put_interval = GNUNET_TIME_relative_divide (zone_publish_time_window, | 545 | put_interval = GNUNET_TIME_relative_divide (zone_publish_time_window, |
544 | num_public_records); | 546 | num_public_records); |
545 | } | 547 | } |
546 | /* reset for next iteration */ | 548 | /* reset for next iteration */ |
547 | min_relative_record_time = GNUNET_TIME_UNIT_FOREVER_REL; | 549 | min_relative_record_time = GNUNET_TIME_UNIT_FOREVER_REL; |
@@ -599,7 +601,7 @@ put_gns_record (void *cls, | |||
599 | 601 | ||
600 | 602 | ||
601 | /** | 603 | /** |
602 | * Periodically iterate over our zone and store everything in dht | 604 | * Periodically iterate over all zones and store everything in DHT |
603 | * | 605 | * |
604 | * @param cls NULL | 606 | * @param cls NULL |
605 | * @param tc task context | 607 | * @param tc task context |
@@ -615,9 +617,8 @@ publish_zone_dht_start (void *cls, | |||
615 | /* start counting again */ | 617 | /* start counting again */ |
616 | num_public_records = 0; | 618 | num_public_records = 0; |
617 | namestore_iter = GNUNET_NAMESTORE_zone_iteration_start (namestore_handle, | 619 | namestore_iter = GNUNET_NAMESTORE_zone_iteration_start (namestore_handle, |
618 | NULL, /* All zones */ | 620 | NULL, /* All zones */ |
619 | &put_gns_record, | 621 | &put_gns_record, NULL ); |
620 | NULL); | ||
621 | } | 622 | } |
622 | 623 | ||
623 | 624 | ||