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

Implemented resource limits function #296

Merged
merged 2 commits into from Jan 11, 2017
Merged

Implemented resource limits function #296

merged 2 commits into from Jan 11, 2017

Conversation

smith3v
Copy link
Contributor

@smith3v smith3v commented Jan 10, 2017

Added limit constants. Implemented function to parse process limits from /proc.
Please let me know if you have any notes.

@@ -60,6 +60,25 @@ type NumCtxSwitchesStat struct {
Involuntary int64 `json:"involuntary"`
}

Copy link
Owner

Choose a reason for hiding this comment

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

Could you add a comment about where these constants comes from? for example sys/resource.h in Linux or appropriate url.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@shirou
Copy link
Owner

shirou commented Jan 11, 2017

Thank you for your contribution!

@shirou shirou merged commit 80a8502 into shirou:master Jan 11, 2017
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

2 participants