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