From c6bec174c4e9b3abe424336894aac431f7b25f94 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 13 Sep 2004 13:45:19 +0000 Subject: [PATCH] Prettier format for latency. --- plugins/Network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Network.py b/plugins/Network.py index 3187ba022..0761902e2 100644 --- a/plugins/Network.py +++ b/plugins/Network.py @@ -282,7 +282,7 @@ class Network(callbacks.Privmsg): now = time.time() if irc in self._latency: (replyIrc, when) = self._latency.pop(irc) - replyIrc.reply('%s seconds.' % (now-when)) + replyIrc.reply('%.2f seconds.' % (now-when)) def latency(self, irc, msg, args): """[] @@ -293,7 +293,7 @@ class Network(callbacks.Privmsg): """ network = self._getNetwork(irc, args) otherIrc = self._getIrc(network) - otherIrc.queueMsg(ircmsgs.ping('Latency check.')) + otherIrc.queueMsg(ircmsgs.ping('Latency check (from %s).' % msg.nick)) self._latency[otherIrc] = (irc, time.time()) # XXX join