hf 10
This commit is contained in:
+6
-3
@@ -83,11 +83,14 @@ void Statistics::addToDestinationsList(const QString &dest)
|
||||
{
|
||||
static QMutex mutex;
|
||||
mutex.lock();
|
||||
if (lastDestinations().size() >= g::c::LAST_AND_TOP_LIST_SIZE)
|
||||
if (not lastDestinations().contains(dest))
|
||||
{
|
||||
m_lastDestinations.pop_back();
|
||||
if (lastDestinations().size() >= g::c::LAST_AND_TOP_LIST_SIZE)
|
||||
{
|
||||
m_lastDestinations.pop_back();
|
||||
}
|
||||
m_lastDestinations.push_front(dest);
|
||||
}
|
||||
m_lastDestinations.push_front(dest);
|
||||
mutex.unlock();
|
||||
|
||||
DBManager db;
|
||||
|
||||
@@ -334,5 +334,6 @@ QPair<QString, QString> WebPage::bytesToHumanReadableString(quint64 bytes)
|
||||
result.second = "PiB";
|
||||
}
|
||||
|
||||
qDebug().noquote() << "Bytes to human-readable:" << bytes << "->" << result.first << result.second;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user