From 90b4952ea99b4acc101e0184a152eced076c84f7 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Tue, 10 Dec 2024 13:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DmacOS=E6=8C=82=E8=BD=BD?= =?UTF-8?q?=E7=82=B9=E6=A3=80=E6=9F=A5=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A1=AE?= =?UTF-8?q?=E4=BF=9D=E6=AD=A3=E7=A1=AE=E5=A4=84=E7=90=86=E6=A0=B9=E6=8C=82?= =?UTF-8?q?=E8=BD=BD=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server_status/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_status/api.py b/server_status/api.py index 8ab69ca..04ef6fa 100644 --- a/server_status/api.py +++ b/server_status/api.py @@ -224,9 +224,9 @@ class Client: or ( platform.system() == "Darwin" - and (not part.mountpoint.startswith( + and ((not part.mountpoint.startswith( include_partition_prefix_mac - ) or part.mountpoint == "/") + )) or not part.mountpoint == "/") ) or usage.total == 0 ):