summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-03-18 01:20:27 +0200
committerMaxim Devaev <[email protected]>2023-03-18 01:20:27 +0200
commita594b574e8bb48faee80029dbfdf15927b7d7b98 (patch)
treecfb4aa7bcfbead8dc3fb992ad57ecb6ef6ee001e /kvmd
parentdbb9eda3416a79a26bb6b738aecab0c43c8c84e5 (diff)
msd tick every 3 seconds
Diffstat (limited to 'kvmd')
-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 65da192c..8836a681 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 + 1 < now or self.__readed == self.__file_size:
+ if self.__tick + 3 < 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 + 1 < now:
+ if self.__tick + 3 < now:
self.__tick = now
self.__notifier.notify()