mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07: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:
parent
61adfea196
commit
af78344e5d
4 changed files with 7 additions and 7 deletions
|
@ -73,7 +73,7 @@ void Logger::freeInstance()
|
|||
void Logger::addMessage(const QString &message, const Log::MsgType &type)
|
||||
{
|
||||
QWriteLocker locker(&m_lock);
|
||||
const Log::Msg msg = {m_msgCounter++, type, QDateTime::currentMSecsSinceEpoch(), message};
|
||||
const Log::Msg msg = {m_msgCounter++, type, QDateTime::currentSecsSinceEpoch(), message};
|
||||
m_messages.push_back(msg);
|
||||
locker.unlock();
|
||||
|
||||
|
@ -83,7 +83,7 @@ void Logger::addMessage(const QString &message, const Log::MsgType &type)
|
|||
void Logger::addPeer(const QString &ip, const bool blocked, const QString &reason)
|
||||
{
|
||||
QWriteLocker locker(&m_lock);
|
||||
const Log::Peer msg = {m_peerCounter++, blocked, QDateTime::currentMSecsSinceEpoch(), ip, reason};
|
||||
const Log::Peer msg = {m_peerCounter++, blocked, QDateTime::currentSecsSinceEpoch(), ip, reason};
|
||||
m_peers.push_back(msg);
|
||||
locker.unlock();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue