Skip to content
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

Determine total physical memory from sysfs for linux as primary method #198

Merged
merged 1 commit into from
Sep 11, 2020

Conversation

cclerget
Copy link
Contributor

This PR allows to first determine on Linux systems the total of physical memory from sysfs (/sys/devices/system/memory) as primary method and fallback to syslog file method if /sys/devices/system/memory is not present for some reasons

Copy link
Owner

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cclerget this is truly awesome. thank you!

}

return total
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very, very nice. 👍

@jaypipes jaypipes merged commit 75d641e into jaypipes:master Sep 11, 2020
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