fixed disk ratio
This commit is contained in:
parent
37fbe80d42
commit
c2da2e8bff
@ -171,7 +171,10 @@ impl AppHandler {
|
|||||||
|
|
||||||
/// returns Memory per vCPU and Disk per vCPU ratio
|
/// returns Memory per vCPU and Disk per vCPU ratio
|
||||||
fn slot_ratios(&self) -> (usize, usize) {
|
fn slot_ratios(&self) -> (usize, usize) {
|
||||||
let total_storage_mib = self.host_config.max_disk_reservation_mib as usize;
|
let total_storage_mib =
|
||||||
|
self.host_config
|
||||||
|
.max_disk_reservation_mib
|
||||||
|
.saturating_sub(self.host_resource.reserved_disk_mib) as usize;
|
||||||
let available_cpus =
|
let available_cpus =
|
||||||
self.host_config
|
self.host_config
|
||||||
.max_vcpu_reservation
|
.max_vcpu_reservation
|
||||||
|
Loading…
Reference in New Issue
Block a user