Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #5 from docwhat/mem
Browse files Browse the repository at this point in the history
Simplified ram calculation.
  • Loading branch information
Jeffrey Hann committed Jun 9, 2014
2 parents fe14510 + 5a16acb commit 8614a06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/archey
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ packagehandler=""

cpu=$(echo "$cpu" | awk '$1=$1' | sed 's/([A-Z]\{1,2\})//g')

mem=$(sysctl -n hw.memsize)
ram="$((mem/1073741824)) GB"
ram="$(( $(sysctl -n hw.memsize) / 1024 ** 3 )) GB"
disk=`df | head -2 | tail -1 | awk '{print $5}'`

# Colors Variables
Expand Down

0 comments on commit 8614a06

Please sign in to comment.