Skip to content

Commit 031e38d

Browse files
authored
Merge pull request #1146 from wineway/main
config-linux: update type of LinuxCPU.Idle to *int64
2 parents 2cf6663 + fc985aa commit 031e38d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ Here is a full example `config.json` for reference.
840840
"realtimeRuntime": 950000,
841841
"realtimePeriod": 1000000,
842842
"cpus": "2-3",
843+
"idle": 1,
843844
"mems": "0-7"
844845
},
845846
"devices": [

specs-go/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ type LinuxCPU struct {
331331
// List of memory nodes in the cpuset. Default is to use any available memory node.
332332
Mems string `json:"mems,omitempty"`
333333
// cgroups are configured with minimum weight, 0: default behavior, 1: SCHED_IDLE.
334-
Idle int64 `json:"idle"`
334+
Idle *int64 `json:"idle,omitempty"`
335335
}
336336

337337
// LinuxPids for Linux cgroup 'pids' resource management (Linux 4.3)

0 commit comments

Comments
 (0)