From a35c32b028721cd62bb458d444780a2156ed13ec Mon Sep 17 00:00:00 2001 From: Vyacheslav Kuznetsov Date: Wed, 11 Jan 2017 19:05:34 +0400 Subject: [PATCH] Commented the constants origin. --- process/process.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/process/process.go b/process/process.go index 6fb2afb..b97f777 100644 --- a/process/process.go +++ b/process/process.go @@ -60,6 +60,8 @@ type NumCtxSwitchesStat struct { Involuntary int64 `json:"involuntary"` } +// Resource limit constants are from /usr/include/x86_64-linux-gnu/bits/resource.h +// from libc6-dev package in Ubuntu 16.10 const ( RLIMIT_CPU int32 = 0 RLIMIT_FSIZE int32 = 1