From 50e71d081d9ccdd39f667f166f2da2aa2d5b4bfe Mon Sep 17 00:00:00 2001 From: utox39 Date: Tue, 25 Mar 2025 01:17:37 +0100 Subject: [PATCH] refactor(macos): rename the getGpuFreq function to getAppleSiliconGpuFreq --- src/macos/hardware.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macos/hardware.zig b/src/macos/hardware.zig index 6594224..165637b 100644 --- a/src/macos/hardware.zig +++ b/src/macos/hardware.zig @@ -218,14 +218,14 @@ pub fn getGpuInfo(allocator: std.mem.Allocator) !GpuInfo { } } - const gpu_freq_mhz = try getGpuFreq(); + const gpu_freq_mhz = try getAppleSiliconGpuFreq(); const gpu_freq_ghz = @floor(gpu_freq_mhz) / 1000; gpu_info.gpu_freq = gpu_freq_ghz; return gpu_info; } -fn getGpuFreq() !f64 { +fn getAppleSiliconGpuFreq() !f64 { // https://github.com/fastfetch-cli/fastfetch/blob/dev/src/detection/gpu/gpu_apple.c // Retrieve the matching service for "pmgr"