mirror of
https://github.com/snowykami/server-status-client.git
synced 2025-01-19 16:58:19 +08:00
修复平台名称大小写问题,确保Linux和macOS的分区监控逻辑正确
This commit is contained in:
parent
48ac46bbb3
commit
e74324e21b
@ -214,15 +214,16 @@ class Client:
|
||||
|
||||
if (
|
||||
(
|
||||
platform.system() == "linux"
|
||||
platform.system() == "Linux"
|
||||
and (
|
||||
part.mountpoint.startswith(
|
||||
excluded_partition_prefix
|
||||
)
|
||||
)
|
||||
)
|
||||
or (
|
||||
platform.system() == "darwin"
|
||||
or
|
||||
(
|
||||
platform.system() == "Darwin"
|
||||
and not part.mountpoint.startswith(
|
||||
include_partition_prefix_mac
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user