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/core/core.h | |
parent | 78a3d311f2c3c82affe6003b9bd3c17c0b2d200b (diff) | |
download | gnunet-cb4610c2c23191e0977738402d87e7b6bd0808c9.tar.gz gnunet-cb4610c2c23191e0977738402d87e7b6bd0808c9.zip |
trying to fix bandwidth calculations
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/core.h b/src/core/core.h index d74ee06f6..45d138140 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
@@ -211,7 +211,7 @@ struct RequestInfoMessage | |||
211 | * peer to at most the specified amount (naturally, the | 211 | * peer to at most the specified amount (naturally, the |
212 | * amount is also limited by the receiving peer). | 212 | * amount is also limited by the receiving peer). |
213 | */ | 213 | */ |
214 | uint32_t limit_outbound_bpm GNUNET_PACKED; | 214 | struct GNUNET_BANDWIDTH_Value32NBO limit_outbound; |
215 | 215 | ||
216 | /** | 216 | /** |
217 | * Number of bytes of inbound traffic to reserve, can | 217 | * Number of bytes of inbound traffic to reserve, can |
@@ -253,16 +253,16 @@ struct ConfigurationInfoMessage | |||
253 | int32_t reserved_amount GNUNET_PACKED; | 253 | int32_t reserved_amount GNUNET_PACKED; |
254 | 254 | ||
255 | /** | 255 | /** |
256 | * Available bandwidth in (in bytes per minute) for this peer. | 256 | * Available bandwidth in for this peer. |
257 | * 0 if we have been disconnected. | 257 | * 0 if we have been disconnected. |
258 | */ | 258 | */ |
259 | uint32_t bpm_in GNUNET_PACKED; | 259 | struct GNUNET_BANDWIDTH_Value32NBO bw_in; |
260 | 260 | ||
261 | /** | 261 | /** |
262 | * Available bandwidth out (in bytes per minute) for this peer, | 262 | * Available bandwidth out for this peer, |
263 | * 0 if we have been disconnected. | 263 | * 0 if we have been disconnected. |
264 | */ | 264 | */ |
265 | uint32_t bpm_out GNUNET_PACKED; | 265 | struct GNUNET_BANDWIDTH_Value32NBO bw_out; |
266 | 266 | ||
267 | /** | 267 | /** |
268 | * Current traffic preference for the peer. | 268 | * Current traffic preference for the peer. |