diff --git a/Makefile b/Makefile index 80f5c57..9a2500c 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,9 @@ ifneq ($(filter unknown Darwin, $(PLATFORM)),) ifeq ($(PLATFORM),apple) override PLATFORM := macos endif - ifeq ($(shell uname -v | grep ARM64 >/dev/null 2>&1; echo $$?),0) - ARCH ?= arm64 - endif +endif +ifeq ($(shell uname -v | grep ARM64 >/dev/null 2>&1; echo $$?),0) + ARCH ?= arm64 else ARCH ?= $(shell $(CXX) -dumpmachine | cut -d "-" -f 1) endif diff --git a/src/osx/sensors.cpp b/src/osx/sensors.cpp index 6b8213d..a76d9c9 100644 --- a/src/osx/sensors.cpp +++ b/src/osx/sensors.cpp @@ -78,8 +78,8 @@ long long Cpu::ThermalSensors::getSensors() { // there is also PMU tdev1-8 but it has negative values?? // there is also eACC for efficiency package but it only has 2 entries // and pACC for performance but it has 7 entries (2 - 9) WTF - if (n.starts_with("eACC") or n.starts_with("pACC")) { - temps.push_back(getValue(sc)); + if (n.starts_with("eACC") or n.starts_with("pACC")) { + temps.push_back(getValue(sc)); } CFRelease(name); }