summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-03-21 07:47:30 +0200
committerMaxim Devaev <[email protected]>2023-03-21 07:47:30 +0200
commit1a2b70b2b04ebdc8da8de75b9802d71b1d92d190 (patch)
tree4ae49c327eb4381a719ed19efe842c2348e463ac
parentb3273b694fe38a154b428fd440390d98f3d73de6 (diff)
decreased msd tick
-rw-r--r--kvmd/plugins/msd/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/msd/__init__.py b/kvmd/plugins/msd/__init__.py
index 8836a681..65da192c 100644
--- a/kvmd/plugins/msd/__init__.py
+++ b/kvmd/plugins/msd/__init__.py
@@ -199,7 +199,7 @@ class MsdFileReader(BaseMsdReader): # pylint: disable=too-many-instance-attribu
self.__readed += len(chunk)
now = time.monotonic()
- if self.__tick + 3 < now or self.__readed == self.__file_size:
+ if self.__tick + 1 < now or self.__readed == self.__file_size:
self.__tick = now
self.__notifier.notify()
@@ -258,7 +258,7 @@ class MsdFileWriter(BaseMsdWriter): # pylint: disable=too-many-instance-attribu
self.__unsynced = 0
now = time.monotonic()
- if self.__tick + 3 < now:
+ if self.__tick + 1 < now:
self.__tick = now
self.__notifier.notify()