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

Simplified ram calculation. #5

Merged
merged 1 commit into from
Jun 9, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bin/archey
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,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