diff --git a/octobot/constants.py b/octobot/constants.py index afeff1dc3..51d6775c2 100644 --- a/octobot/constants.py +++ b/octobot/constants.py @@ -164,6 +164,7 @@ # system ENABLE_CLOCK_SYNCH = os_util.parse_boolean_environment_var("ENABLE_CLOCK_SYNCH", "True") ENABLE_SYSTEM_WATCHER = os_util.parse_boolean_environment_var("ENABLE_SYSTEM_WATCHER", "True") +WATCH_RAM = os_util.parse_boolean_environment_var("WATCH_RAM", "False") DUMP_USED_RESOURCES = os_util.parse_boolean_environment_var("DUMP_USED_RESOURCES", "False") USED_RESOURCES_OUTPUT = os.getenv("USED_RESOURCES_OUTPUT", "system_resources.csv") diff --git a/octobot/octobot.py b/octobot/octobot.py index 44270f9af..e37dfe46b 100644 --- a/octobot/octobot.py +++ b/octobot/octobot.py @@ -262,6 +262,7 @@ async def _ensure_watchers(self): if constants.ENABLE_SYSTEM_WATCHER: await system_resources_watcher.start_system_resources_watcher( constants.DUMP_USED_RESOURCES, + constants.WATCH_RAM, constants.USED_RESOURCES_OUTPUT )