Merge pull request #887 from Snorch/fix-for-custom-cgroup-mounting
Make getCgroupPath work in case of named or multi- hierarchies
This commit is contained in:
commit
fba0608527
@ -42,7 +42,7 @@ import (
|
|||||||
// Housekeeping interval.
|
// Housekeeping interval.
|
||||||
var HousekeepingInterval = flag.Duration("housekeeping_interval", 1*time.Second, "Interval between container housekeepings")
|
var HousekeepingInterval = flag.Duration("housekeeping_interval", 1*time.Second, "Interval between container housekeepings")
|
||||||
|
|
||||||
var cgroupPathRegExp = regexp.MustCompile(".*devices:(.*?)[,;$].*")
|
var cgroupPathRegExp = regexp.MustCompile(".*devices.*:(.*?)[,;$].*")
|
||||||
|
|
||||||
// Decay value used for load average smoothing. Interval length of 10 seconds is used.
|
// Decay value used for load average smoothing. Interval length of 10 seconds is used.
|
||||||
var loadDecay = math.Exp(float64(-1 * (*HousekeepingInterval).Seconds() / 10))
|
var loadDecay = math.Exp(float64(-1 * (*HousekeepingInterval).Seconds() / 10))
|
||||||
|
Loading…
Reference in New Issue
Block a user