From 4895ed33b1c3b48ed5a86479a6bef7ea30d984df Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 21 May 2018 10:08:43 +1000 Subject: [PATCH] misc: cleanup --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 30a98816..818f4b48 100755 --- a/neofetch +++ b/neofetch @@ -2252,8 +2252,8 @@ get_memory() { # Source: https://github.com/KittyKatt/screenFetch/issues/386#issuecomment-249312716 while IFS=":" read -r a b; do case "$a" in - "MemTotal") mem_used="$((mem_used+=${b/kB}))"; mem_total="${b/kB}" ;; - "Shmem") mem_used="$((mem_used+=${b/kB}))" ;; + "MemTotal") ((mem_used+=${b/kB})); mem_total="${b/kB}" ;; + "Shmem") ((mem_used+=${b/kB})) ;; "MemFree" | "Buffers" | "Cached" | "SReclaimable") mem_used="$((mem_used-=${b/kB}))" ;; @@ -3408,7 +3408,7 @@ get_cols() { cols="${cols//nl/\\n\\e[${text_padding}C${zws}}" # Add block height to info height. - info_height="$((info_height+=block_height+2))" + ((info_height+=block_height+2)) printf "%b\n" "\e[${text_padding}C${zws}${cols}" fi