[ServerUp] Show time in ms instead of s

master
Sfan5 2013-05-27 17:06:47 +02:00
parent da262da392
commit d76620e2cc
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ def serverup(phenny, input):
sock.sendto(buf, (address, port))
sock.close()
end = time.time()
phenny.say("%s is up (%0.3fs)" % (repres,end-start))
t = (end-start)*1000
phenny.say("%s is up (%dms)" % (repres,t))
else:
phenny.say("%s seems to be down " % repres)
except: