feat: add cpu frequency

This commit is contained in:
utox39
2025-03-20 13:43:35 +01:00
parent 5fe913da11
commit 6a8f82dd41

View File

@@ -45,7 +45,7 @@ pub fn main() !void {
allocator.free(shell);
const cpu_info = try detection.getCpuInfo(allocator);
try stdout.print("cpu: {s} ({})\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores });
try stdout.print("cpu: {s} ({}) @ {d:.2} GHz\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores, cpu_info.cpu_max_freq });
try bw.flush();
allocator.free(cpu_info.cpu_name);