We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f30d1cf + 43e0ecf commit de920c0Copy full SHA for de920c0
nbresuse/api.py
@@ -36,7 +36,7 @@ async def get(self):
36
mem_limit = config.mem_limit
37
38
limits = {"memory": {"rss": mem_limit}}
39
- if config.mem_limit:
+ if config.mem_limit and config.mem_warning_threshold != 0:
40
limits["memory"]["warn"] = (mem_limit - rss) < (
41
mem_limit * config.mem_warning_threshold
42
)
0 commit comments