From 8db323c69c849d79c5d7d29aa334867046fdbee9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 20 Oct 2011 09:05:44 +0000 Subject: [PATCH] fix --- src/include/gnunet_constants.h | 7 +++++++ src/transport/transport.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h index 0fc63a526..771b473e8 100644 --- a/src/include/gnunet_constants.h +++ b/src/include/gnunet_constants.h @@ -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 diff --git a/src/transport/transport.h b/src/transport/transport.h index b4ddd0a7f..05df5ef49 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h @@ -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 -- 2.25.1