fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 20 Oct 2011 09:05:44 +0000 (09:05 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 20 Oct 2011 09:05:44 +0000 (09:05 +0000)
src/include/gnunet_constants.h
src/transport/transport.h

index 0fc63a526e3f34b67824cf748d65a653192f270f..771b473e850bc6cb7d6faa66b7ceab51a1ec9bad 100644 (file)
@@ -97,6 +97,13 @@ extern "C"
  */
 #define GNUNET_CONSTANTS_IDLE_LOAD_THRESHOLD 70
 
+/**
+ * For how long do we allow unused bandwidth
+ * from the past to carry over into the future? (in seconds)
+ */
+#define GNUNET_CONSTANTS_MAX_BANDWIDTH_CARRY_S 5
+
+
 /**
  * After how long do we expire an address in a HELLO that we just
  * validated?  This value is also used for our own addresses when we
index b4ddd0a7f2a1ee0772858c7f097a9158d2f9ba21..05df5ef4917af5c7716b5584465bf4238056bb82 100644 (file)
@@ -29,6 +29,7 @@
 #include "gnunet_crypto_lib.h"
 #include "gnunet_time_lib.h"
 #include "gnunet_transport_service.h"
+#include "gnunet_constants.h"
 
 #define DEBUG_TRANSPORT GNUNET_EXTRA_LOGGING
 
@@ -42,7 +43,7 @@
  * For how long do we allow unused bandwidth
  * from the past to carry over into the future? (in seconds)
  */
-#define MAX_BANDWIDTH_CARRY_S 5
+#define MAX_BANDWIDTH_CARRY_S GNUNET_CONSTANTS_MAX_BANDWIDTH_CARRY
 
 /**
  * How often do we (at most) do a full quota