From 437d595d95f0a3a96af4374c36d61dd8eec49191 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 26 Apr 2024 13:41:41 +0200 Subject: [PATCH] feat: Display available RAM (#476) --- src/reset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reset.sh b/src/reset.sh index bc24b3d5..d5ac5d96 100644 --- a/src/reset.sh +++ b/src/reset.sh @@ -42,7 +42,7 @@ HOST=$(hostname -s) KERNEL=$(uname -r | cut -b 1) MINOR=$(uname -r | cut -d '.' -f2) ARCH=$(dpkg --print-architecture) -RAM="$(free -g | grep Mem: | awk '{print $4}')/$(free -g | grep Mem: | awk '{print $2}') GB" +RAM="$(free -g | grep Mem: | awk '{print $7}')/$(free -g | grep Mem: | awk '{print $2}') GB" CPU=$(lscpu | grep 'Model name' | cut -f 2 -d ":" | awk '{$1=$1}1' | sed 's# @.*##g' | sed s/"(R)"//g | sed 's/[^[:alnum:] ]\+/ /g' | sed 's/ */ /g') # Check system