From 57b381c11da40edfd695ffa17768193c05df9cb3 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sat, 14 Sep 2024 15:06:49 +0200 Subject: [PATCH] fix: added omit for disk that have 0 total space (#2122) --- Modules/Disk/readers.swift | 1 + Stats/Supporting Files/Info.plist | 2 +- Widgets/Supporting Files/Info.plist | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Disk/readers.swift b/Modules/Disk/readers.swift index 306aeb65..b41bcde6 100644 --- a/Modules/Disk/readers.swift +++ b/Modules/Disk/readers.swift @@ -73,6 +73,7 @@ internal class CapacityReader: Reader { d.size = self.totalDiskSpaceInBytes(path) } d.smart = self.getSMARTDetails(for: BSDName) + guard d.size != 0 else { continue } self.list.append(d) self.list.sort() } diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index 7f3b441a..92961ed3 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 588 + 594 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType diff --git a/Widgets/Supporting Files/Info.plist b/Widgets/Supporting Files/Info.plist index 5f7467cd..c413c92e 100644 --- a/Widgets/Supporting Files/Info.plist +++ b/Widgets/Supporting Files/Info.plist @@ -13,7 +13,7 @@ CFBundleShortVersionString 2.11.9 CFBundleVersion - 588 + 594 NSExtension NSExtensionPointIdentifier