diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-03-05 20:31:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-03-05 20:31:58 +0000 |
commit | cb4610c2c23191e0977738402d87e7b6bd0808c9 (patch) | |
tree | bb6f7ad28dd92895680c909adbe3d54a3cce62b6 /src/include/gnunet_constants.h | |
parent | 78a3d311f2c3c82affe6003b9bd3c17c0b2d200b (diff) | |
download | gnunet-cb4610c2c23191e0977738402d87e7b6bd0808c9.tar.gz gnunet-cb4610c2c23191e0977738402d87e7b6bd0808c9.zip |
trying to fix bandwidth calculations
Diffstat (limited to 'src/include/gnunet_constants.h')
-rw-r--r-- | src/include/gnunet_constants.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h index eb8addf5f..035cc60b9 100644 --- a/src/include/gnunet_constants.h +++ b/src/include/gnunet_constants.h | |||
@@ -35,13 +35,15 @@ extern "C" | |||
35 | #endif | 35 | #endif |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #include "gnunet_bandwidth_lib.h" | ||
39 | |||
38 | /** | 40 | /** |
39 | * Amount of bytes per minute (in/out) to assume initially (before | 41 | * Bandwidth (in/out) to assume initially (before either peer has |
40 | * either peer has communicated any particular preference). Should be | 42 | * communicated any particular preference). Should be rather low; set |
41 | * rather low; set so that at least one maximum-size message can be | 43 | * so that at least one maximum-size message can be send roughly once |
42 | * send each minute. | 44 | * per minute. |
43 | */ | 45 | */ |
44 | #define GNUNET_CONSTANTS_DEFAULT_BPM_IN_OUT GNUNET_SERVER_MAX_MESSAGE_SIZE | 46 | #define GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT GNUNET_BANDWIDTH_value_init (1024) |
45 | 47 | ||
46 | /** | 48 | /** |
47 | * After how long do we consider a connection to a peer dead | 49 | * After how long do we consider a connection to a peer dead |