feat: add ram info

This commit is contained in:
utox39
2025-03-03 12:40:36 +01:00
parent 953369e948
commit 4444e9292c

View File

@@ -37,4 +37,8 @@ pub fn main() !void {
try stdout.print("gpu: {s} ({})\n", .{ gpu_info.gpu_name, gpu_info.gpu_cores });
try bw.flush();
allocator.free(gpu_info.gpu_name);
const ram_info = try os_module.getRamInfo();
try stdout.print("ram: {d:.2} / {d:.2} GB\n", .{ ram_info.ram_usage, ram_info.ram_size });
try bw.flush();
}