Commit a9fa1ac6 authored by Dominik Charousset's avatar Dominik Charousset Committed by Dominik Charousset

Fix buffered_scatterer::capacity

parent a351b808
...@@ -83,7 +83,7 @@ public: ...@@ -83,7 +83,7 @@ public:
size_t capacity() const noexcept override { size_t capacity() const noexcept override {
// TODO: get rid of magic number // TODO: get rid of magic number
static constexpr size_t max_buf_size = 100; static constexpr size_t max_buf_size = 100;
return buf_.size() < max_buf_size ? buf_.size() - max_buf_size : 0u; return buf_.size() < max_buf_size ? max_buf_size - buf_.size() : 0u;
} }
size_t buffered() const noexcept override { size_t buffered() const noexcept override {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment