Skip to content

Commit

Permalink
Fix missing CPU clock info for Apple M1
Browse files Browse the repository at this point in the history
  • Loading branch information
matriphe committed Apr 24, 2022
1 parent 99143cf commit a46fdc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entities/HardwareInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
}
Expand Down

0 comments on commit a46fdc0

Please sign in to comment.