Skip to content
Snippets Groups Projects
Commit 649775c2 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

minor fixes

parent 79fadaa5
No related branches found
No related tags found
No related merge requests found
# v2.14.21
* fixed docs for `GlobalRelativeValue`
* `MemoryPressureManager` will name it's thread
__version__ = '2.14.21_a1'
__version__ = '2.14.21_a2'
......@@ -92,7 +92,7 @@ class GlobalAbsoluteValue(MemoryCondition):
class GlobalRelativeValue(MemoryCondition):
"""
If percentage of global free memory falls below this many bytes, given severity level starts
If percentage of global free memory falls below this much percents, given severity level starts
"""
__slots__ = ()
......
......@@ -46,7 +46,7 @@ class MemoryPressureManager(TerminableThread):
severity_levels: tp.List[BaseCondition] = None,
check_interval: int = 10,
log_transitions: bool = True):
super().__init__(daemon=True)
super().__init__(name='memory pressure manager', daemon=True)
self.log_transitions = log_transitions # type: bool
self.process = psutil.Process(os.getpid()) # type: psutil.Process
self.maximum_available = maximum_available # type: int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment