From 94d62cd94059465fc0591a20de526586ecee6cb3 Mon Sep 17 00:00:00 2001 From: tatiana-kondakova Date: Tue, 13 Mar 2018 13:45:13 +0300 Subject: [PATCH] [tracking] Fix circular buffer allocation --- tracking/reporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracking/reporter.cpp b/tracking/reporter.cpp index 0b256e9833..77799bdd98 100644 --- a/tracking/reporter.cpp +++ b/tracking/reporter.cpp @@ -39,7 +39,7 @@ Reporter::Reporter(unique_ptr socket, string const & host, uin // Set buffer size to be enough to keep all points even if one reconnect attempt failed. auto const realTimeBufferSize = (duration_cast(m_pushDelay).count() + kReconnectDelaySeconds) / kMinDelaySeconds; - m_points.resize(ceil(realTimeBufferSize)); + m_points.set_capacity(ceil(realTimeBufferSize)); } Reporter::~Reporter()