diff options
| author | samposa_1337 <lososhome1@gmail.com> | 2026-10-30 02:19:29 +0300 |
|---|---|---|
| committer | samposa_1337 <lososhome1@gmail.com> | 2026-10-30 02:19:29 +0300 |
| commit | b160ac2a21f0f34565a99c4f1889db3ac7245618 (patch) | |
| tree | 406ef70324dd413569fbb740cf7b54e0d339abb7 /src/main.zig | |
| parent | 90d3c27c6dfae0e293f9aa5bdae2d89dce081fd5 (diff) | |
add uptime
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main.zig b/src/main.zig index ab5ca1a..bc7b48b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -9,31 +9,22 @@ pub fn main() !void { var gpa = std.heap.GeneralPurposeAllocator(.{}){}; defer _ = gpa.deinit(); const allocator = gpa.allocator(); - const cpuq = try stat.getcput(allocator); defer allocator.free(cpuq); - const kernel = try stat.getkernel(allocator); defer allocator.free(kernel); - const osd = try stat.getos(allocator); defer allocator.free(osd); - const ram = try stat.ramInfo(allocator); defer allocator.free(ram); - const hst = try stat.gethst(allocator); defer allocator.free(hst); - const ge = try stat.GetRam(allocator); defer allocator.free(ge); - const user = try stat.users(allocator); defer allocator.free(user); - const trm = try stat.uptime(allocator); defer allocator.free(trm); - const art = artd.logo; try stdout.print("{s} Ezfetch\n", .{art[0]}); try stdout.print("{s} -----------------\n", .{art[1]}); |
