diff options
author | Maxim Devaev <[email protected]> | 2023-06-02 17:20:07 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-06-02 17:20:07 +0300 |
commit | 6e0d93be23434482a5aa61727a779d815e36699e (patch) | |
tree | 8032d3ac959d8003672a2dcb32de499690102848 /kvmd/apps | |
parent | 225ea61a0e0e27cf2dec4ddd2049ca9ac0867357 (diff) |
using time.monotonic() instead of time.time()
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/kvmd/api/msd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/kvmd/api/msd.py b/kvmd/apps/kvmd/api/msd.py index 23979d51..94b08299 100644 --- a/kvmd/apps/kvmd/api/msd.py +++ b/kvmd/apps/kvmd/api/msd.py @@ -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 |