From d5d173c3c47667823f761bd6a8752f315a134b12 Mon Sep 17 00:00:00 2001 From: tatiana-yan Date: Mon, 4 Feb 2019 12:00:52 +0300 Subject: [PATCH] [search] Send all search results to Alohalytics. --- search/processor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/search/processor.cpp b/search/processor.cpp index 13d2c5459b..6a1f54c2c7 100644 --- a/search/processor.cpp +++ b/search/processor.cpp @@ -77,11 +77,9 @@ m2::RectD GetRectAroundPosition(m2::PointD const & position) void SendStatistics(SearchParams const & params, m2::RectD const & viewport, Results const & res) { - size_t const kMaxNumResultsToSend = 10; - size_t const numResultsToSend = min(kMaxNumResultsToSend, res.GetCount()); - string resultString = strings::to_string(numResultsToSend); - for (size_t i = 0; i < numResultsToSend; ++i) + string resultString = strings::to_string(res.GetCount()); + for (size_t i = 0; i < res.GetCount(); ++i) resultString.append("\t" + res[i].ToStringForStats()); string posX, posY;