зеркало из https://github.com/microsoft/docker.git
Merge pull request #13150 from hqhq/hq_remove_warn
Remove redundant warning
This commit is contained in:
Коммит
c9821d8dd6
|
@ -52,13 +52,11 @@ func New(quiet bool) *SysInfo {
|
|||
}
|
||||
} else {
|
||||
_, err := ioutil.ReadFile(path.Join(cgroupCpuMountpoint, "cpu.cfs_period_us"))
|
||||
logrus.Warnf("%s", cgroupCpuMountpoint)
|
||||
sysInfo.CpuCfsPeriod = err == nil
|
||||
if !sysInfo.CpuCfsPeriod && !quiet {
|
||||
logrus.Warnf("WARING: Your kernel does not support cgroup cfs period")
|
||||
logrus.Warn("Your kernel does not support cgroup cfs period")
|
||||
}
|
||||
_, err = ioutil.ReadFile(path.Join(cgroupCpuMountpoint, "cpu.cfs_quota_us"))
|
||||
logrus.Warnf("%s", cgroupCpuMountpoint)
|
||||
sysInfo.CpuCfsQuota = err == nil
|
||||
if !sysInfo.CpuCfsQuota && !quiet {
|
||||
logrus.Warn("Your kernel does not support cgroup cfs quotas")
|
||||
|
|
Загрузка…
Ссылка в новой задаче