From c9c7097769d244a30e00c84879e0741adde7df92 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Wed, 19 Sep 2018 07:14:36 +0100 Subject: [PATCH] ring_buffer: Fix Push --- src/common/ring_buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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