From 7cd57770a17c6e07febbdb6dc807238faa98a093 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sun, 6 Mar 2022 12:33:45 +0100 Subject: [PATCH] v2.7.6 --- Modules/Sensors/bridge.h | 2 +- Modules/Sensors/readers.swift | 2 +- Stats.xcodeproj/project.pbxproj | 4 ++-- Stats/Supporting Files/Info.plist | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/Sensors/bridge.h b/Modules/Sensors/bridge.h index e46e26bf..ca502852 100644 --- a/Modules/Sensors/bridge.h +++ b/Modules/Sensors/bridge.h @@ -28,7 +28,7 @@ typedef float IOHIDFloat; IOHIDEventSystemClientRef IOHIDEventSystemClientCreate(CFAllocatorRef allocator); int IOHIDEventSystemClientSetMatching(IOHIDEventSystemClientRef client, CFDictionaryRef match); IOHIDEventRef IOHIDServiceClientCopyEvent(IOHIDServiceClientRef, int64_t , int32_t, int64_t); -CFStringRef IOHIDServiceClientCopyProperty(IOHIDServiceClientRef service, CFStringRef property); +CFTypeRef IOHIDServiceClientCopyProperty(IOHIDServiceClientRef service, CFStringRef property); IOHIDFloat IOHIDEventGetFloatValue(IOHIDEventRef event, int32_t field); NSDictionary*AppleSiliconSensors(int page, int usage, int32_t type); diff --git a/Modules/Sensors/readers.swift b/Modules/Sensors/readers.swift index d7674857..d404552d 100644 --- a/Modules/Sensors/readers.swift +++ b/Modules/Sensors/readers.swift @@ -99,7 +99,7 @@ internal class SensorsReader: Reader<[Sensor_p]> { var cpuSensors = self.list.filter({ $0.group == .CPU && $0.type == .temperature && $0.average }).map{ $0.value } var gpuSensors = self.list.filter({ $0.group == .GPU && $0.type == .temperature && $0.average }).map{ $0.value } - var fanSensors = self.list.filter({ $0.type == .fan && !$0.isComputed }).map{ $0.value } + let fanSensors = self.list.filter({ $0.type == .fan && !$0.isComputed }).map{ $0.value } #if arch(arm64) if self.HIDState { diff --git a/Stats.xcodeproj/project.pbxproj b/Stats.xcodeproj/project.pbxproj index 6853b7bd..40e6fa54 100644 --- a/Stats.xcodeproj/project.pbxproj +++ b/Stats.xcodeproj/project.pbxproj @@ -1885,7 +1885,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.13; - MARKETING_VERSION = 2.7.5; + MARKETING_VERSION = 2.7.6; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1918,7 +1918,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.13; - MARKETING_VERSION = 2.7.5; + MARKETING_VERSION = 2.7.6; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index b90ab74e..ddc61205 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 347 + 348 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType