diff options
author | Devaev Maxim <[email protected]> | 2020-11-13 12:31:00 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-13 12:31:00 +0300 |
commit | 58f60bb49f582fba5ac0810c07642e9313b33bfb (patch) | |
tree | ea0cbf9de9f1d8eeb0450d62014091db451a2dec /kvmd/plugins/msd/otg/__init__.py | |
parent | 65c6abee249bfb7e2d50e4f734d93f422118cb61 (diff) |
using monotonic time
Diffstat (limited to 'kvmd/plugins/msd/otg/__init__.py')
-rw-r--r-- | kvmd/plugins/msd/otg/__init__.py | 2 |
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 |