diff --git a/fetch b/fetch index 4455cf73..21df78cc 100755 --- a/fetch +++ b/fetch @@ -645,7 +645,7 @@ getmemory () { memtotal=$(dmesg | awk '/real mem/ {printf $5}') memtotal=${memtotal/\(/} memtotal=${memtotal/)MB/} - memfree=$(top -d 1 | awk '/Mem:/ {print $10}') + memfree=$(top -d 1 | awk '/Mem:/ {printf $10}') memfree=${memfree/M/} memused=$((memtotal - memfree))