diff options
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig index adfd07f..8fe11e4 100644 --- a/src/main.zig +++ b/src/main.zig @@ -12,7 +12,11 @@ pub fn main() !void { const kernel = try stat.getkernel(allocator); const osd = try stat.getos(allocator); const ram = try stat.ramInfo(allocator); + const hst = try stat.gethst(allocator); + const ge = try stat.GetRam(allocator); + defer allocator.free(ge); defer allocator.free(ram); + defer allocator.free(hst); defer allocator.free(osd); defer allocator.free(cpuq); defer allocator.free(kernel); @@ -20,7 +24,8 @@ pub fn main() !void { try stdout.print("{s} Ezfetch\n", .{art[0]}); try stdout.print("{s} -----------------\n", .{art[1]}); try stdout.print("{s} Os: {s}\n", .{art[2], osd}); - try stdout.print("{s} Kernel: {s}\n", .{art[3], kernel}); - try stdout.print("{s} Cpu: {s}\n", .{art[4], cpuq}); - try stdout.print("{s} Ram: {s}\n", .{art[5], ram}); + try stdout.print("{s} Hostname: {s}\n", .{art[3], hst}); + try stdout.print("{s} Kernel: {s}\n", .{art[4], kernel}); + try stdout.print("{s} Cpu: {s}\n", .{art[5], cpuq}); + try stdout.print(" Ram: {s} / {s} \n", .{ge, ram}); } |
