diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-26 12:27:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-26 12:27:28 +0000 |
commit | 65a922f1144a89ad9aa95a29899fc3338ad8a35a (patch) | |
tree | f39ae23be05b5da4ba0b122904aa1d35a481f753 /src/include/gnunet_bandwidth_lib.h | |
parent | 874f5684e15a99d6ed4316088d33dca55f484c33 (diff) | |
download | gnunet-65a922f1144a89ad9aa95a29899fc3338ad8a35a.tar.gz gnunet-65a922f1144a89ad9aa95a29899fc3338ad8a35a.zip |
change time multiplication/division API to long long to avoid accidental range reduction
Diffstat (limited to 'src/include/gnunet_bandwidth_lib.h')
-rw-r--r-- | src/include/gnunet_bandwidth_lib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gnunet_bandwidth_lib.h b/src/include/gnunet_bandwidth_lib.h index 7b63de390..178ddaaac 100644 --- a/src/include/gnunet_bandwidth_lib.h +++ b/src/include/gnunet_bandwidth_lib.h | |||
@@ -126,7 +126,7 @@ struct GNUNET_BANDWIDTH_Tracker | |||
126 | struct GNUNET_TIME_Absolute last_update__; | 126 | struct GNUNET_TIME_Absolute last_update__; |
127 | 127 | ||
128 | /** | 128 | /** |
129 | * Bandwidth limit to enforce in bytes per s. | 129 | * Bandwidth limit to enforce in bytes per second. |
130 | */ | 130 | */ |
131 | uint32_t available_bytes_per_s__; | 131 | uint32_t available_bytes_per_s__; |
132 | 132 | ||
@@ -289,7 +289,7 @@ GNUNET_BANDWIDTH_tracker_consume (struct GNUNET_BANDWIDTH_Tracker *av, | |||
289 | 289 | ||
290 | 290 | ||
291 | /** | 291 | /** |
292 | * Compute how long we should wait until consuming 'size' | 292 | * Compute how long we should wait until consuming @a size |
293 | * bytes of bandwidth in order to stay within the given | 293 | * bytes of bandwidth in order to stay within the given |
294 | * quota. | 294 | * quota. |
295 | * | 295 | * |