This commit is contained in:
aozhiwei 2019-12-30 19:36:36 +08:00
parent 447eed2bef
commit af12a5f61a

View File

@ -231,11 +231,9 @@ if __name__ == "__main__":
app = make_app()
app.listen(conf['listen_port'])
rushtime = 300
if conf['rushtime']:
rushtime = conf['rushtime']
tornado.ioloop.IOLoop.current().call_later(rushtime,
lambda : readMysqlData(rushtime)
conf['rushtime'] = 300
tornado.ioloop.IOLoop.current().call_later(conf['rushtime'],
lambda : readMysqlData(conf['rushtime'])
)
conf['day_rushtime'] = 5 * 3600