mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
using time.monotonic() instead of time.time()
This commit is contained in:
parent
225ea61a0e
commit
6e0d93be23
@ -189,7 +189,7 @@ class MsdApi:
|
||||
last_report_ts = 0
|
||||
async for chunk in remote.content.iter_chunked(chunk_size):
|
||||
written = await writer.write_chunk(chunk)
|
||||
now = int(time.time())
|
||||
now = int(time.monotonic())
|
||||
if last_report_ts + 1 < now:
|
||||
await stream_write_info()
|
||||
last_report_ts = now
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user