mirror of
https://github.com/snowykami/server-status-client.git
synced 2024-11-22 07:07:58 +08:00
✨ 排除linux下无关分区
This commit is contained in:
parent
db7aeabe7b
commit
e03c99a9f6
@ -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] = {
|
||||
|
Loading…
Reference in New Issue
Block a user