Updated indentation and styling so that it's consistant

master
Ronald1985 4 years ago
parent fa8fc9e199
commit 4ebbdf88bb

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

Loading…
Cancel
Save