排除linux下无关分区

This commit is contained in:
远野千束 2024-10-03 17:42:28 +08:00
parent db7aeabe7b
commit e03c99a9f6

View File

@ -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] = {