From a46fdc0ac959676fa8f49f6e58d384fa3644160e Mon Sep 17 00:00:00 2001 From: Muhammad Zamroni Date: Sun, 24 Apr 2022 23:33:52 +0200 Subject: [PATCH] Fix missing CPU clock info for Apple M1 --- src/Entities/HardwareInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/HardwareInfo.php b/src/Entities/HardwareInfo.php index a010ddc..cf6d167 100644 --- a/src/Entities/HardwareInfo.php +++ b/src/Entities/HardwareInfo.php @@ -69,7 +69,7 @@ public function getCpu(): array $results[] = [ self::CPU_MODEL => $model, self::CPU_VENDOR => $cpu['Vendor'] ?? null, - self::CPU_CLOCK_MHZ => $cpu['MHz'], + self::CPU_CLOCK_MHZ => $cpu['MHz'] ?? '', self::CPU_USAGE_PERCENTAGE => $cpu['usage_percentage'] ?? null, ]; }