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

Divide hw.memsize by 1073741824 for expected GB results #1

Merged
merged 1 commit into from
Jan 28, 2014

Commits on Jan 27, 2014

  1. Divide hw.memsize by 1073741824 for expected GB results

    Dividing the number of bytes returned from `sysctl hw.memsize` by
    1.0x10^9 gives unexpected results on machines with a large amount of
    RAM. For example, on a 16GB system, `archey` will report **17 GB**.
    Dividing by 1073741824 (i.e., 1024^3) yields the expected results.
    rdlugosz committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    9a2bc8d View commit details
    Browse the repository at this point in the history