From d9318d1041f275232b316d8a1e97f8d83c6cc3b7 Mon Sep 17 00:00:00 2001 From: Dave Russell Date: Sun, 4 Mar 2018 13:10:41 +0000 Subject: [PATCH] Fix grep for Mem block --- lib/barr/blocks/mem.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/barr/blocks/mem.rb b/lib/barr/blocks/mem.rb index 4b9eb00..3774659 100644 --- a/lib/barr/blocks/mem.rb +++ b/lib/barr/blocks/mem.rb @@ -10,7 +10,7 @@ def update! private def sys_cmd - `free -h | grep 'cache:' | awk '{printf "%s / %sG", $(NF-1), $(NF-1)+$(NF)}'`.chomp + `free -h | grep 'Mem:' | awk '{printf "%s / %sG", $(NF-1), $(NF-1)+$(NF)}'`.chomp end end end