This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtcontainers: fix vCPU calculation errors
We were grabbing a running total of quota and period for each container and then calculating the number of resulting vCPUs. Summing period doesn't make sense. To simplify, let's just calculate mCPU per container, keep a running total of mCPUs requested, and then translate to sandbox vCPUs after. Fixes: #1292 Signed-off-by: Eric Ernst <[email protected]>
- Loading branch information
Eric Ernst
committed
Feb 28, 2019
1 parent
07ac52c
commit d53a481
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters