From 148742e1fe1d7e4041f3cabf8d5532e750a3d334 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 18 Jan 2016 17:19:15 +1100 Subject: [PATCH] Fix free memory on OpenBSD --- fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch b/fetch index b6ae44a6..1401056d 100755 --- a/fetch +++ b/fetch @@ -643,7 +643,7 @@ getmemory () { memtotal=$(dmesg | awk '/real mem/ {printf $5}') memtotal=${memtotal/\(/} memtotal=${memtotal/)MB/} - memfree=$(top -d 1 | awk '/Real:/ {print $4}') + memfree=$(top -d 1 | awk '/Real:/ {print $6}') memfree=${memfree/M/} memused=$((memtotal - memfree))