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

Conversation

rdlugosz
Copy link
Contributor

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.

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.
obihann pushed a commit that referenced this pull request Jan 28, 2014
Divide hw.memsize by 1073741824 for expected GB results
@obihann obihann merged commit ef91799 into obihann:master Jan 28, 2014
@rdlugosz
Copy link
Contributor Author

Cool, thx. Does a separate PR need to be made against the homebrew project to pick this up?

@obihann
Copy link
Owner

obihann commented Jan 28, 2014

I just submitted that so we should be good. Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants