diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-26 13:05:44 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-26 13:05:44 +0000 |
commit | dfe7e1ea4e61cc99e915af38d0f063e0acd52c50 (patch) | |
tree | 4135e16764bdfee965656c801bada6433910ce07 /src | |
parent | ccc760fc1da9b3f377a445f43474633f20f4de67 (diff) | |
download | gnunet-dfe7e1ea4e61cc99e915af38d0f063e0acd52c50.tar.gz gnunet-dfe7e1ea4e61cc99e915af38d0f063e0acd52c50.zip |
changed bps (bits per second) to Bps (bytes per second)
Diffstat (limited to 'src')
-rw-r--r-- | src/util/bandwidth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/bandwidth.c b/src/util/bandwidth.c index 38e5027d0..658f79b20 100644 --- a/src/util/bandwidth.c +++ b/src/util/bandwidth.c | |||
@@ -42,7 +42,7 @@ GNUNET_BANDWIDTH_value_init (uint32_t bytes_per_second) | |||
42 | 42 | ||
43 | #if DEBUG_BANDWIDTH | 43 | #if DEBUG_BANDWIDTH |
44 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 44 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
45 | "Initializing bandwidth of %u bps\n", | 45 | "Initializing bandwidth of %u Bps\n", |
46 | (unsigned int) bytes_per_second); | 46 | (unsigned int) bytes_per_second); |
47 | #endif | 47 | #endif |
48 | ret.value__ = htonl (bytes_per_second); | 48 | ret.value__ = htonl (bytes_per_second); |
@@ -151,7 +151,7 @@ GNUNET_BANDWIDTH_tracker_init (struct GNUNET_BANDWIDTH_Tracker *av, | |||
151 | av->max_carry_s__ = max_carry_s; | 151 | av->max_carry_s__ = max_carry_s; |
152 | #if DEBUG_BANDWIDTH | 152 | #if DEBUG_BANDWIDTH |
153 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 153 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
154 | "Tracker %p initialized with %u bps and max carry %u\n", | 154 | "Tracker %p initialized with %u Bps and max carry %u\n", |
155 | av, | 155 | av, |
156 | (unsigned int) av->available_bytes_per_s__, | 156 | (unsigned int) av->available_bytes_per_s__, |
157 | (unsigned int) max_carry_s); | 157 | (unsigned int) max_carry_s); |
@@ -188,7 +188,7 @@ update_tracker (struct GNUNET_BANDWIDTH_Tracker *av) | |||
188 | } | 188 | } |
189 | #if DEBUG_BANDWIDTH | 189 | #if DEBUG_BANDWIDTH |
190 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 190 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
191 | "Tracker %p updated, have %u bps last update was %llu ms ago\n", | 191 | "Tracker %p updated, have %u Bps, last update was %llu ms ago\n", |
192 | av, | 192 | av, |
193 | (unsigned int) av->available_bytes_per_s__, | 193 | (unsigned int) av->available_bytes_per_s__, |
194 | (unsigned long long) (now.value - av->last_update__.value)); | 194 | (unsigned long long) (now.value - av->last_update__.value)); |
@@ -342,7 +342,7 @@ GNUNET_BANDWIDTH_tracker_update_quota (struct GNUNET_BANDWIDTH_Tracker *av, | |||
342 | new_limit = ntohl (bytes_per_second_limit.value__); | 342 | new_limit = ntohl (bytes_per_second_limit.value__); |
343 | #if DEBUG_BANDWIDTH | 343 | #if DEBUG_BANDWIDTH |
344 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 344 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
345 | "Tracker %p bandwith changed to %u bps\n", | 345 | "Tracker %p bandwith changed to %u Bps\n", |
346 | av, | 346 | av, |
347 | (unsigned int) new_limit); | 347 | (unsigned int) new_limit); |
348 | #endif | 348 | #endif |