mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-26 10:34:24 +01:00
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 <eric.ernst@intel.com>