Use coarse timestamp format

Since format in milliseconds doesn't add additional value and is
slower than just seconds.
This commit is contained in:
Chocobo1 2022-06-18 00:18:33 +08:00
parent 61adfea196
commit af78344e5d
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
4 changed files with 7 additions and 7 deletions

View file

@ -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))
{