X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.cpp;h=44033bd675c3ac7679cfe2487d906e2a1ac0d70a;hp=f8deabfa666ff4fd6d6c21a376524815e567ee09;hb=34aa0106620836d360f2deebaa8d88ef52ba1a7e;hpb=fd25e92f19d6afd4eb02844bcbf20ba132868303 diff --git a/src/common/remotepeer.cpp b/src/common/remotepeer.cpp index f8deabfa..44033bd6 100644 --- a/src/common/remotepeer.cpp +++ b/src/common/remotepeer.cpp @@ -166,11 +166,7 @@ void RemotePeer::handle(const HeartBeat &heartBeat) void RemotePeer::handle(const HeartBeatReply &heartBeatReply) { _heartBeatCount = 0; -#if QT_VERSION < 0x040700 - emit lagUpdated(heartBeatReply.timestamp().time().msecsTo(QTime::currentTime()) / 2); -#else - emit lagUpdated(heartBeatReply.timestamp().msecsTo(QDateTime::currentDateTime()) / 2); -#endif + emit lagUpdated(heartBeatReply.timestamp().msecsTo(QDateTime::currentDateTime().toUTC()) / 2); } @@ -189,8 +185,6 @@ void RemotePeer::sendHeartBeat() emit lagUpdated(_lag); } - dispatch(HeartBeat(QDateTime::currentDateTime())); + dispatch(HeartBeat(QDateTime::currentDateTime().toUTC())); ++_heartBeatCount; } - -