[ServerUp] Show time in ms instead of s
parent
da262da392
commit
d76620e2cc
|
@ -71,7 +71,8 @@ def serverup(phenny, input):
|
||||||
sock.sendto(buf, (address, port))
|
sock.sendto(buf, (address, port))
|
||||||
sock.close()
|
sock.close()
|
||||||
end = time.time()
|
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:
|
else:
|
||||||
phenny.say("%s seems to be down " % repres)
|
phenny.say("%s seems to be down " % repres)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue