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 #1 from rdlugosz/fix_ram_division
Browse files Browse the repository at this point in the history
Divide hw.memsize by 1073741824 for expected GB results
  • Loading branch information
Jeffrey Hann committed Jan 28, 2014
2 parents ecdc991 + 9a2bc8d commit ef91799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/archey
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ packagehandler=""
cpu=$(echo "$cpu" | awk '$1=$1' | sed 's/([A-Z]\{1,2\})//g')

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

# Colors Variables
Expand Down Expand Up @@ -80,4 +80,4 @@ ${PURPLE} #################### $memoryText $ram
${BLUE} ################ $diskText $disk
${BLUE} #### ##### ${normal}
"
"

0 comments on commit ef91799

Please sign in to comment.