take time hls
This commit is contained in:
parent
e84e643162
commit
6cd4acd9c3
@ -218,6 +218,7 @@ except Exception as e:
|
||||
logger.info(e)
|
||||
|
||||
async def rewrite(upstream, current, proxy):
|
||||
rewrite_start = (time.time_ns() // 1_000_000)
|
||||
ndata = None
|
||||
text = None
|
||||
try:
|
||||
@ -268,6 +269,8 @@ async def rewrite(upstream, current, proxy):
|
||||
else:
|
||||
ndata += links.pop(0)
|
||||
ndata += "\n"
|
||||
rewrite_stop = (time.time_ns() // 1_000_000)
|
||||
logger.info(str(rewrite_stop - rewrite_start))
|
||||
return ndata
|
||||
|
||||
class MainHandler(tornado.web.RequestHandler):
|
||||
|
Loading…
Reference in New Issue
Block a user