aboutsummaryrefslogtreecommitdiff
path: root/src/util/bandwidth.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
commitf5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea (patch)
treeb59a38ad9e2296b3d2c8cc3302f21cf6d3ecc458 /src/util/bandwidth.c
parent6db64c5eae089e1d81cafbb051f65412790d16bc (diff)
downloadgnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.tar.gz
gnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.zip
-fix misc issues
Diffstat (limited to 'src/util/bandwidth.c')
-rw-r--r--src/util/bandwidth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/bandwidth.c b/src/util/bandwidth.c
index 364c46977..bc5c02d60 100644
--- a/src/util/bandwidth.c
+++ b/src/util/bandwidth.c
@@ -177,7 +177,7 @@ update_excess (struct GNUNET_BANDWIDTH_Tracker *av)
177 500000LL) / 1000000LL; 177 500000LL) / 1000000LL;
178 current_consumption = av->consumption_since_last_update__ - delta_avail; 178 current_consumption = av->consumption_since_last_update__ - delta_avail;
179 /* negative current_consumption means that we have savings */ 179 /* negative current_consumption means that we have savings */
180 max_carry = av->available_bytes_per_s__ * av->max_carry_s__; 180 max_carry = (uint64_t) av->available_bytes_per_s__ * av->max_carry_s__;
181 if (max_carry < GNUNET_SERVER_MAX_MESSAGE_SIZE) 181 if (max_carry < GNUNET_SERVER_MAX_MESSAGE_SIZE)
182 max_carry = GNUNET_SERVER_MAX_MESSAGE_SIZE; 182 max_carry = GNUNET_SERVER_MAX_MESSAGE_SIZE;
183 left_bytes = max_carry + current_consumption; 183 left_bytes = max_carry + current_consumption;