From 6863e9c50ee81c2d3183bec2716e44e1c16fecc3 Mon Sep 17 00:00:00 2001 From: Layne Peng Date: Fri, 17 Jun 2016 02:03:03 +0800 Subject: [PATCH] The default value of cfs_quota_us should be -1, which is negative --- specs-go/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs-go/config.go b/specs-go/config.go index 015e032d0..fa26f87c1 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -272,7 +272,7 @@ type CPU struct { // CPU shares (relative weight (ratio) vs. other cgroups with cpu shares). Shares *uint64 `json:"shares,omitempty"` // CPU hardcap limit (in usecs). Allowed cpu time in a given period. - Quota *uint64 `json:"quota,omitempty"` + Quota *int64 `json:"quota,omitempty"` // CPU period to be used for hardcapping (in usecs). Period *uint64 `json:"period,omitempty"` // How much time realtime scheduling may use (in usecs).