Use milliseconds for CTCP PING
authorBas Pape <baspape@gmail.com>
Mon, 1 Aug 2011 08:11:02 +0000 (10:11 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 29 Jan 2014 18:36:49 +0000 (19:36 +0100)
src/core/eventstringifier.cpp

index baa3933..5cb3fd9 100644 (file)
@@ -733,7 +733,7 @@ void EventStringifier::handleCtcpPing(CtcpEvent *e)
     if (e->ctcpType() == CtcpEvent::Query)
         defaultHandler(e->ctcpCmd(), e);
     else {
     if (e->ctcpType() == CtcpEvent::Query)
         defaultHandler(e->ctcpCmd(), e);
     else {
-        displayMsg(e, Message::Server, tr("Received CTCP-PING answer from %1 with %2 seconds round trip time")
-            .arg(nickFromMask(e->prefix())).arg(QDateTime::fromTime_t(e->param().toInt()).secsTo(e->timestamp())));
+        displayMsg(e, Message::Server, tr("Received CTCP-PING answer from %1 with %2 milliseconds round trip time")
+            .arg(nickFromMask(e->prefix())).arg(QDateTime::fromTime_t(e->param().toInt()).msecsTo(e->timestamp())));
     }
 }
     }
 }