summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJosh Blum2012-09-17 11:21:02 -0700
committerJosh Blum2012-09-17 11:21:02 -0700
commite2251508a10070ddb02734efbf470a0082ef1a98 (patch)
tree0a2ed6793a75b9b53f7f8ec88384ba501f55c61d /lib
parent2e84df43a6b408028657ea6aa5084572a688d485 (diff)
downloadsandhi-e2251508a10070ddb02734efbf470a0082ef1a98.tar.gz
sandhi-e2251508a10070ddb02734efbf470a0082ef1a98.tar.bz2
sandhi-e2251508a10070ddb02734efbf470a0082ef1a98.zip
use the reserve calculation for round down case
Diffstat (limited to 'lib')
-rw-r--r--lib/gras_impl/input_buffer_queues.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gras_impl/input_buffer_queues.hpp b/lib/gras_impl/input_buffer_queues.hpp
index 9e7bf63..8274490 100644
--- a/lib/gras_impl/input_buffer_queues.hpp
+++ b/lib/gras_impl/input_buffer_queues.hpp
@@ -167,7 +167,7 @@ inline void InputBufferQueues::init(
//post bytes are the desired buffer size to escape the edge case
_post_bytes[i] = input_item_sizes[i]*max_history_items;
_post_bytes[i] = std::max(_post_bytes[i], _reserve_bytes[i]);
- _post_bytes[i] += input_item_sizes[i]; //pad for round down issues
+ _post_bytes[i] += _reserve_bytes[i]; //pad for round down issues
//allocate mini buffers for history edge conditions
size_t num_bytes = _history_bytes[i] + _post_bytes[i];