@ -61,6 +61,7 @@ get_key :: proc(s: string) -> (string, bool) {
return s, false
}
// TODO: Maybe look at re-writing this?
parse_meminfo :: proc(meminfo: string) -> (map[string]f64, bool) {
s := strings.fields(meminfo)
orig := s
@ -166,7 +167,7 @@ main :: proc() {
fmt.println("CPU Name: ", cpu_name)
for {
for i := 1; i < 10; i += 1 {
if mem_usage_perc, ok = get_ram_usage_perc(); !ok {
fmt.fprintln(os.stderr, "Failed to read memory usage")