gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r30289 - gnunet/src/gns


From: gnunet
Subject: [GNUnet-SVN] r30289 - gnunet/src/gns
Date: Fri, 18 Oct 2013 12:01:31 +0200

Author: grothoff
Date: 2013-10-18 12:01:30 +0200 (Fri, 18 Oct 2013)
New Revision: 30289

Modified:
   gnunet/src/gns/gnunet-service-gns.c
Log:
-start each round with infty as the minimum interval, otherwise it would always 
be zero

Modified: gnunet/src/gns/gnunet-service-gns.c
===================================================================
--- gnunet/src/gns/gnunet-service-gns.c 2013-10-18 10:00:09 UTC (rev 30288)
+++ gnunet/src/gns/gnunet-service-gns.c 2013-10-18 10:01:30 UTC (rev 30289)
@@ -160,7 +160,7 @@
  * Minimum relative expiration time
  * of records seem during zone iteration
  */
-static struct GNUNET_TIME_Relative min_relative_record_time;
+static struct GNUNET_TIME_Relative min_relative_record_time = 
GNUNET_TIME_UNIT_FOREVER_REL;
 
 /**
  * Zone iteration PUT interval.
@@ -374,6 +374,8 @@
       put_interval = GNUNET_TIME_relative_divide (zone_publish_time_window,
                                                  num_public_records);
     }
+    /* reset for next iteration */
+    min_relative_record_time = GNUNET_TIME_UNIT_FOREVER_REL;
     put_interval = GNUNET_TIME_relative_max (MINIMUM_ZONE_ITERATION_INTERVAL,
                                             put_interval);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]