feat: add cpu info

This commit is contained in:
utox39
2025-02-27 15:21:06 +01:00
parent ea7c11ff78
commit 682f83b694

View File

@@ -26,4 +26,8 @@ pub fn main() !void {
const shell = try os_module.getShell(allocator); const shell = try os_module.getShell(allocator);
try stdout.print("Shell: {s}", .{shell}); try stdout.print("Shell: {s}", .{shell});
try bw.flush(); 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();
} }