From d239704cfa827a5e271a3c804db93af1360d86b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Wed, 23 May 2018 12:28:59 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@384 a8b55f48-bf90-11e4-a774-851b48703e85 --- cd_utils/cdutils_types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cd_utils/cdutils_types.cpp b/cd_utils/cdutils_types.cpp index 65e63a0..88b4c2a 100644 --- a/cd_utils/cdutils_types.cpp +++ b/cd_utils/cdutils_types.cpp @@ -67,9 +67,9 @@ CDType & CDType::operator =(double x) { val += avg_h[i]; val /= avg_h.size(); avg_h.clear(); + if (history.size() < cd_x_history_max_size) + history << val; } - if (history.size() < cd_x_history_max_size) - history << val; } return *this; }