From ba1b1b83357615ac9f2f81e5bcc4f09abaa1bc31 Mon Sep 17 00:00:00 2001 From: Ronald1985 Date: Tue, 7 Nov 2023 22:19:05 +0000 Subject: [PATCH] Adding types files. Fixing previous commits with process and disk procudures. These are required by previous commits. --- types.odin | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/types.odin b/types.odin index 98ed1a7..dcc9ee9 100644 --- a/types.odin +++ b/types.odin @@ -19,3 +19,18 @@ Sys_statvfs :: struct { __f_spare: [6]c.int } + +Partition :: struct { + major: int, + minor: int, + blocks: f64, + name: string +} + +Process :: struct { + name: string, + command: string, + pid: int, + cpu_usage: int, + memory_usage: int, +}