From 682f83b6949fa9a282a60a1629f993e799a8fcd9 Mon Sep 17 00:00:00 2001 From: utox39 Date: Thu, 27 Feb 2025 15:21:06 +0100 Subject: [PATCH] feat: add cpu info --- src/main.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.zig b/src/main.zig index 8bc7860..da7abb4 100644 --- a/src/main.zig +++ b/src/main.zig @@ -26,4 +26,8 @@ pub fn main() !void { const shell = try os_module.getShell(allocator); try stdout.print("Shell: {s}", .{shell}); try bw.flush(); + + const cpu_info = try os_module.getCpuInfo(allocator); + try stdout.print("cpu: {s} ({})\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores }); + try bw.flush(); }