diff --git a/src/common/ring_buffer.h b/src/common/ring_buffer.h index f44d9e8d3..428d3095f 100644 --- a/src/common/ring_buffer.h +++ b/src/common/ring_buffer.h @@ -56,7 +56,7 @@ public: } std::size_t Push(const std::vector& input) { - return Push(input.data(), input.size()); + return Push(input.data(), input.size() / granularity); } /// Pops slots from the ring buffer