Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
iCloud Drive reads its total as the least it can be when cut short
Țugui Dragoșf1854be91a2e
diff --git a/Peel/Model/CloudLibrary.swift b/Peel/Model/CloudLibrary.swiftindex 2c32b306..467859ee 100644--- a/Peel/Model/CloudLibrary.swift+++ b/Peel/Model/CloudLibrary.swift@@ -29,8 +29,9 @@ final class CloudLibrary {}private(set) var selectedSize: Int64 = 0- var totalSize: Int64 {- files?.reduce(0) { $0 + $1.size } ?? 0+ /// What the listed files take on this Mac, only the least it can be when there is more than the list shows.+ var total: SizeTotal {+ SizeTotal(known: (files ?? []).reduce(0) { $0.addingCapped($1.size) }, isComplete: !wasCutShort)}/// The files whose folder or path holds `query`, every file for an empty one.diff --git a/Peel/Model/FoundLastTimeStore.swift b/Peel/Model/FoundLastTimeStore.swiftindex 4dc4b0ff..acdd72ec 100644--- a/Peel/Model/FoundLastTimeStore.swift+++ b/Peel/Model/FoundLastTimeStore.swift@@ -96,6 +96,6 @@ extension DuplicateLibrary {extension CloudLibrary {var looked: Looked? {- files.map { Looked(count: $0.count, size: SizeTotal(known: totalSize, isComplete: true)) }+ files.map { Looked(count: $0.count, size: total) }}}diff --git a/Peel/Views/Cloud/CloudView.swift b/Peel/Views/Cloud/CloudView.swiftindex f22360b5..e84bcc6b 100644--- a/Peel/Views/Cloud/CloudView.swift+++ b/Peel/Views/Cloud/CloudView.swift@@ -188,7 +188,7 @@ struct CloudView: View {.font(.callout).foregroundStyle(.secondary)} trailing: {- TotalLabel(bytes: cloud.totalSize, caption: Text("on this Mac"))+ TotalLabel(total: cloud.total, caption: Text("on this Mac"))}}}