Skip to content

Commit

Permalink
feat: Display available RAM (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Apr 26, 2024
1 parent c473924 commit 437d595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 437d595

Please sign in to comment.