top counters style & adaptive for mobile displays

This commit is contained in:
acetone
2022-11-22 18:29:01 +03:00
parent 46d562adec
commit f934913f51
6 changed files with 14 additions and 28 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ void Statistics::report(const LogEvent& event)
m_lastDestinationsMtx.lock();
if (not m_lastDestinations.contains(event.dest))
{
if (m_lastDestinations.size() >= static_cast<int>(g::p::LAST_AND_TOP_LIST_SIZE))
if (m_lastDestinations.size() == 5)
{
m_lastDestinations.pop_back();
}