config: linux: update description of PidsLimit

Fix a misleading comment for how PidsLimit works when given a limit of
0. In the PIDs controller, a limit of 0 is identical to a limit of 1,
since it is not possible to impose a limit on 0 processes.

As such, it makes no sense to distinguish the two values, rather the
value 0 (which is also the default value of an integer in Go) should
instead indicate no limit (which is the default for all new PIDs
controllers).

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
Aleksa Sarai 2015-10-28 19:07:48 +11:00
parent ab4acc05ff
commit 9b19cd2fab
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ type CPU struct {
// Pids for Linux cgroup 'pids' resource management (Linux 4.3)
type Pids struct {
// Maximum number of PIDs. A value < 0 implies "no limit".
// Maximum number of PIDs. A value <= 0 indicates "no limit".
Limit int64 `json:"limit"`
}