diff --git a/neofetch b/neofetch index c820964d..537c12de 100755 --- a/neofetch +++ b/neofetch @@ -1,5 +1,4 @@ #!/usr/bin/env bash -set -x # vim: fdm=marker:noai:ts=4:sw=4 # # Neofetch info about your system @@ -1091,7 +1090,7 @@ getgpu () { getmemory () { case "$os" in "Linux" | "Windows") - mem=($(awk -F ':| kB' '/MemTotal|MemFree|Buffers|Cached/ {printf $2}' /proc/meminfo )) + mem=($(awk -F ':| kB' '/MemTotal|MemFree|Buffers|Cached/ {printf $2}' /proc/meminfo ) 0 0) memused=$((${mem[0]} - ${mem[1]} - ${mem[2]} - ${mem[3]})) memused=$((memused / 1024)) memtotal=$((${mem[0]} / 1024))