feat: add gpu freq

This commit is contained in:
utox39
2025-03-25 01:10:28 +01:00
parent 443e9b9985
commit 9bbc71f299

View File

@@ -50,7 +50,7 @@ pub fn main() !void {
allocator.free(cpu_info.cpu_name); allocator.free(cpu_info.cpu_name);
const gpu_info = try detection.hardware.getGpuInfo(allocator); const gpu_info = try detection.hardware.getGpuInfo(allocator);
try stdout.print("gpu: {s} ({})\n", .{ gpu_info.gpu_name, gpu_info.gpu_cores }); try stdout.print("gpu: {s} ({}) @ {d:.2} GHz\n", .{ gpu_info.gpu_name, gpu_info.gpu_cores, gpu_info.gpu_freq });
try bw.flush(); try bw.flush();
allocator.free(gpu_info.gpu_name); allocator.free(gpu_info.gpu_name);