fix clock and startup modules
parent
ee6ce7ba3e
commit
3d41e2f1d9
|
@ -291,7 +291,7 @@ def npl(phenny, input):
|
|||
d = dec('0.0')
|
||||
for i in range(8):
|
||||
d += dec(buf[32 + i]) * dec(str(math.pow(2, (3 - i) * 8)))
|
||||
d -= dec(2208988800L)
|
||||
d -= dec(2208988800)
|
||||
a, b = str(d).split('.')
|
||||
f = '%Y-%m-%d %H:%M:%S'
|
||||
result = datetime.datetime.fromtimestamp(d).strftime(f) + '.' + b[:6]
|
||||
|
|
|
@ -19,7 +19,7 @@ def setup(phenny):
|
|||
except: pass
|
||||
|
||||
def close():
|
||||
print "Nobody PONGed our PING, restarting"
|
||||
print("Nobody PONGed our PING, restarting")
|
||||
phenny.handle_close()
|
||||
|
||||
def pingloop():
|
||||
|
|
Loading…
Reference in New Issue