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

linux real free memory calculation #44

Merged
merged 1 commit into from Feb 16, 2017
Merged

Conversation

zhangzifa
Copy link
Contributor

No description provided.

var status = function () {
var loadavg = os.loadavg();
return {
uptime: os.uptime(), // in ms
totalmem: os.totalmem(), // in byte
freemem: os.freemem(), // in byte
freemem: os.type() === 'Linux' ? getMemoryUsage() : os.freemem(), // in byte
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@coveralls
Copy link

coveralls commented Feb 15, 2017

Coverage Status

Coverage increased (+0.2%) to 86.081% when pulling 7550dfb on linux_usable_memory into 430053a on master.

@JacksonTian JacksonTian merged commit 754f66c into master Feb 16, 2017
@JacksonTian JacksonTian deleted the linux_usable_memory branch July 11, 2017 08:20
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.

None yet

5 participants