Skip to content

Commit

Permalink
[OS] add WATCH_RAM env var
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Jul 15, 2024
1 parent 63469b5 commit 425290f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions octobot/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
1 change: 1 addition & 0 deletions octobot/octobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 425290f

Please sign in to comment.