mirror of
https://github.com/snowykami/server-status-client.git
synced 2025-03-01 19:33:51 +08:00
修复macOS挂载点检查逻辑,确保正确处理根挂载点
This commit is contained in:
parent
0559212d03
commit
90b4952ea9
@ -224,9 +224,9 @@ class Client:
|
|||||||
or
|
or
|
||||||
(
|
(
|
||||||
platform.system() == "Darwin"
|
platform.system() == "Darwin"
|
||||||
and (not part.mountpoint.startswith(
|
and ((not part.mountpoint.startswith(
|
||||||
include_partition_prefix_mac
|
include_partition_prefix_mac
|
||||||
) or part.mountpoint == "/")
|
)) or not part.mountpoint == "/")
|
||||||
)
|
)
|
||||||
or usage.total == 0
|
or usage.total == 0
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user