summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-06-02 17:20:07 +0300
committerMaxim Devaev <[email protected]>2023-06-02 17:20:07 +0300
commit6e0d93be23434482a5aa61727a779d815e36699e (patch)
tree8032d3ac959d8003672a2dcb32de499690102848 /kvmd
parent225ea61a0e0e27cf2dec4ddd2049ca9ac0867357 (diff)
using time.monotonic() instead of time.time()
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/apps/kvmd/api/msd.py2
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