X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.cpp;h=d3752f10d896d253ac50b66e008607ce26972f05;hp=e405758aba4bf6a760726e309d85c4cbadd9720d;hb=9dfc807d8f60135976d4ea0ed31022304fad8f4c;hpb=549c1ec98e255d23ebabe1eaa9558a03dfbc7bc4 diff --git a/src/common/remotepeer.cpp b/src/common/remotepeer.cpp index e405758a..d3752f10 100644 --- a/src/common/remotepeer.cpp +++ b/src/common/remotepeer.cpp @@ -161,14 +161,18 @@ void RemotePeer::close(const QString &reason) void RemotePeer::handle(const HeartBeat &heartBeat) { - dispatch(HeartBeatReply(heartBeat.timestamp())); + dispatch(HeartBeatReply(heartBeat.timestamp)); } void RemotePeer::handle(const HeartBeatReply &heartBeatReply) { _heartBeatCount = 0; +#if QT_VERSION >= 0x040900 emit lagUpdated(heartBeatReply.timestamp().msecsTo(QDateTime::currentDateTime().toUTC()) / 2); +#else + emit lagUpdated(heartBeatReply.timestamp().time().msecsTo(QDateTime::currentDateTime().toUTC().time()) / 2); +#endif }