Merge pull request #14032 from lizf-os/fix-sysinfo-regression

Fix sysinfo regression
This commit is contained in:
Alexander Morozov 2015-06-19 11:00:13 -07:00
commit 3ee67caf3b
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ func checkCgroupMem(quiet bool) *cgroupMemInfo {
if !quiet {
logrus.Warnf("Your kernel does not support cgroup memory limit: %v", err)
}
return nil
return info
}
info.MemoryLimit = true
@ -61,7 +61,7 @@ func checkCgroupCpu(quiet bool) *cgroupCpuInfo {
if !quiet {
logrus.Warn(err)
}
return nil
return info
}
info.CpuCfsPeriod = cgroupEnabled(mountPoint, "cpu.cfs_period_us")