improve code

This commit is contained in:
tanshanshan
2017-09-26 19:49:56 +08:00
parent b188868fd9
commit f6ea2a61da
4 changed files with 9 additions and 6 deletions

View File

@@ -534,7 +534,7 @@ func getContainer(pid int) (string, error) {
return "", cgroups.NewNotFoundError("memory")
}
// since we use this container for accounting, we need to ensure its a unified hierarchy.
// since we use this container for accounting, we need to ensure it is a unified hierarchy.
if cpu != memory {
return "", fmt.Errorf("cpu and memory cgroup hierarchy not unified. cpu: %s, memory: %s", cpu, memory)
}