fix clock and startup modules

master
mutantmonkey 2012-02-10 19:10:34 -05:00
parent ee6ce7ba3e
commit 3d41e2f1d9
2 changed files with 37 additions and 37 deletions

View File

@ -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]

View File

@ -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():