mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
deps: bump opencontainers/cgroups to v0.0.2
For changes, see https://github.com/opencontainers/cgroups/releases/tag/v0.0.2 Fix integration tests according to changes in [1] (now the CPU quota value set is rounded the same way systemd does it). [1]: https://github.com/opencontainers/cgroups/pull/4 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -303,6 +303,11 @@ function check_cpu_quota() {
|
||||
# Round up to nearest 10ms.
|
||||
ms=$(((ms + 5) / 10 * 10))
|
||||
sd_quota="${ms}ms"
|
||||
|
||||
# Recalculate quota based on systemd value.
|
||||
# Convert ms back to quota units.
|
||||
quota=$((ms * period / 1000))
|
||||
|
||||
fi
|
||||
|
||||
# Systemd values are the same for v1 and v2.
|
||||
|
||||
Reference in New Issue
Block a user