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