Пример #1
0
 public bool CanAddVm(Vm vm) => CurrentLoadPercentage + VmSize(vm) <= MaxPercentage;
Пример #2
0
 private double VmSize(Vm vm) => (vm.Size / Capacity) * MaxPercentage;