mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Use coarse timestamp format
Since format in milliseconds doesn't add additional value and is slower than just seconds.
This commit is contained in:
@@ -146,7 +146,7 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
|
||||
stream << QStringView(u"(N) ");
|
||||
}
|
||||
|
||||
stream << QDateTime::fromMSecsSinceEpoch(msg.timestamp).toString(Qt::ISODate) << QStringView(u" - ") << msg.message << QChar(u'\n');
|
||||
stream << QDateTime::fromSecsSinceEpoch(msg.timestamp).toString(Qt::ISODate) << QStringView(u" - ") << msg.message << QChar(u'\n');
|
||||
|
||||
if (m_backup && (m_logFile.size() >= m_maxSize))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user