summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/otg/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-11-13 12:31:00 +0300
committerDevaev Maxim <[email protected]>2020-11-13 12:31:00 +0300
commit58f60bb49f582fba5ac0810c07642e9313b33bfb (patch)
treeea0cbf9de9f1d8eeb0450d62014091db451a2dec /kvmd/plugins/msd/otg/__init__.py
parent65c6abee249bfb7e2d50e4f734d93f422118cb61 (diff)
using monotonic time
Diffstat (limited to 'kvmd/plugins/msd/otg/__init__.py')
-rw-r--r--kvmd/plugins/msd/otg/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py
index f55dcb42..a4fd3919 100644
--- a/kvmd/plugins/msd/otg/__init__.py
+++ b/kvmd/plugins/msd/otg/__init__.py
@@ -328,7 +328,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
assert self.__new_file
await aiofs.afile_write_now(self.__new_file, chunk)
self.__new_file_written += len(chunk)
- now = time.time()
+ now = time.monotonic()
if self.__new_file_tick + 1 < now:
# Это нужно для ручного оповещения о свободном пространстве на диске, см. get_state()
self.__new_file_tick = now