diff --git a/.local/libexec/statusbar/sb-memory b/.local/libexec/statusbar/sb-memory index 119ed741..25088c83 100755 --- a/.local/libexec/statusbar/sb-memory +++ b/.local/libexec/statusbar/sb-memory @@ -1,3 +1,3 @@ #!/bin/sh printf "%b" " " -free -m | sed -n '2{p;q}' | awk '{printf ("%2.2fG/%2.2fG\n", ($3 / 1024), ($2 / 1024))}' +free -m | awk 'NR==2 { printf ("%2.2fG/%2.2fG\n", ($3 / 1024), ($2 / 1024)) }'