Implemented resource limits function #296

Merged
merged 2 commits into from Jan 11, 2017

Projects

None yet

2 participants

@smith3v
Contributor
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"`
}
@shirou
shirou Jan 11, 2017 Owner

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

@smith3v
smith3v Jan 11, 2017 Contributor

Done.

@shirou
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