Skip to content

Commit

Permalink
Correct disk threshhold reference
Browse files Browse the repository at this point in the history
  • Loading branch information
perllaghu authored Apr 26, 2024
1 parent a722408 commit 809553c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_resource_usage/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def get(self):
limits["disk"] = {"disk": disk_info.total}
if config.disk_warning_threshold != 0:
limits["disk"]["warn"] = (disk_info.total - disk_info.used) < (
disk_info.total * config.cpu_warning_threshold
disk_info.total * config.disk_warning_threshold
)

self.write(json.dumps(metrics))
Expand Down

0 comments on commit 809553c

Please sign in to comment.