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 8b48ed9 + 3897820 commit d131aaaCopy full SHA for d131aaa
nbresuse/api.py
@@ -51,7 +51,7 @@ async def get(self):
51
if config.cpu_limit != 0:
52
limits["cpu"] = {"cpu": config.cpu_limit}
53
if config.cpu_warning_threshold != 0:
54
- limits["cpu"]["warn"] = (config.cpu_limit - self.cpu_percent) < (
+ limits["cpu"]["warn"] = (config.cpu_limit - cpu_percent) < (
55
config.cpu_limit * config.cpu_warning_threshold
56
)
57
0 commit comments