From 809553c8e715b928d91396fce2d7257bf87ed2b1 Mon Sep 17 00:00:00 2001 From: Ian Stuart Date: Fri, 26 Apr 2024 16:04:58 +0100 Subject: [PATCH] Correct disk threshhold reference --- jupyter_resource_usage/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_resource_usage/api.py b/jupyter_resource_usage/api.py index 19d8d4d..943bf80 100644 --- a/jupyter_resource_usage/api.py +++ b/jupyter_resource_usage/api.py @@ -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))