From aa029491bec37a473a1eba7f510230aa185a0db2 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Mon, 18 Jul 2016 17:02:30 +1000 Subject: [PATCH] configs: fix json tags for CpuRt* options Previously we used the same JSON tag name for the regular and realtime versions of the CpuRt* fields, which causes issues when you want to use two different values for the fields. Signed-off-by: Aleksa Sarai --- libcontainer/configs/cgroup_unix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcontainer/configs/cgroup_unix.go b/libcontainer/configs/cgroup_unix.go index f2eff91c..cf90af7b 100644 --- a/libcontainer/configs/cgroup_unix.go +++ b/libcontainer/configs/cgroup_unix.go @@ -69,10 +69,10 @@ type Resources struct { CpuPeriod int64 `json:"cpu_period"` // How many time CPU will use in realtime scheduling (in usecs). - CpuRtRuntime int64 `json:"cpu_quota"` + CpuRtRuntime int64 `json:"cpu_rt_quota"` // CPU period to be used for realtime scheduling (in usecs). - CpuRtPeriod int64 `json:"cpu_period"` + CpuRtPeriod int64 `json:"cpu_rt_period"` // CPU to use CpusetCpus string `json:"cpuset_cpus"`