From e03c99a9f6909d8ca76105405668ba4cf42fd732 Mon Sep 17 00:00:00 2001 From: snowykami Date: Thu, 3 Oct 2024 17:42:28 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=8E=92=E9=99=A4linux=E4=B8=8B?= =?UTF-8?q?=E6=97=A0=E5=85=B3=E5=88=86=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server_status/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_status/api.py b/server_status/api.py index fa64d00..6c44515 100644 --- a/server_status/api.py +++ b/server_status/api.py @@ -232,7 +232,7 @@ class Client: try: usage = psutil.disk_usage(part.mountpoint) - if part.mountpoint.startswith(excluded_partition_prefix): + if part.mountpoint.startswith(excluded_partition_prefix) or usage.total == 0: continue self.hardware.disks[part.device] = {