Skip to content

Fix FreeBSD memory usage #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2016
Merged

Fix FreeBSD memory usage #30

merged 1 commit into from
Jan 9, 2016

Conversation

tony
Copy link
Contributor

@tony tony commented Jan 9, 2016

Total memory would go out of bounds for machines ~ > 3.5gB of
memory due to the limit of what u_int can hold.

Use getpagesize() and bitshift pagesize so it fits.

See also: #29

Total memory would go out of bounds for machines ~ > 3.5gB of
memory due to the limit of what u_int can hold.

Use ``getpagesize()`` and bitshift pagesize so it fits.

See also: thewtex#29
@thewtex
Copy link
Owner

thewtex commented Jan 9, 2016

LGTM. Thanks for the contribution!

thewtex added a commit that referenced this pull request Jan 9, 2016
@thewtex thewtex merged commit 9ad57c9 into thewtex:master Jan 9, 2016
@tony tony deleted the freebsd-memory branch January 10, 2016 01:07
dev-hann added a commit to dev-hann/tmux-mem-cpu-load that referenced this pull request Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants