mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: added omit for disk that have 0 total space (#2122)
This commit is contained in:
@@ -73,6 +73,7 @@ internal class CapacityReader: Reader<Disks> {
|
||||
d.size = self.totalDiskSpaceInBytes(path)
|
||||
}
|
||||
d.smart = self.getSMARTDetails(for: BSDName)
|
||||
guard d.size != 0 else { continue }
|
||||
self.list.append(d)
|
||||
self.list.sort()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user