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