diff options
| author | samposa_1337 <lososhome1@gmail.com> | 2026-10-28 16:35:44 +0300 |
|---|---|---|
| committer | samposa_1337 <lososhome1@gmail.com> | 2026-10-28 16:35:44 +0300 |
| commit | 8a85171b9913f0aa6d6716ff1296c23dc5902fa6 (patch) | |
| tree | 387b02b3ea6193006a9e41ea72ba90800578cd5f /src/main.zig | |
| parent | d09f171f4c7fa7993101e205543ff8d52ebffffc (diff) | |
add hostname and update info ram
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}); } |
