From f358f25e8a7ff2465e3ac42d57652036681df1c9 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 28 Mar 2016 09:47:38 +1100 Subject: [PATCH] Add 2 dummy numbers to mem function --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))