cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudsimplus/faultinjection/HostFaultInjection.java
public double meanTimeToRepairVmFaultsInMinutes(DatacenterBroker broker) {
        final double faultsFromBroker = getNumberOfFaults(broker);
        if(faultsFromBroker == 0){
            return 0;
        }
        return totalVmsRecoveryTimeInMinutes(broker) / faultsFromBroker;
    }
/**
     * Computes the current Mean Time To Repair Failures of VMs in minutes (MTTR)
     * belonging to given broker.
     *
     * @param broker the broker to get the MTTR for
     * @return the current Mean Time To Repair Failures of VMs in minutes (MTTR)
     * or zero if no VM was destroyed due to Host failure
     */
Computes the current Mean Time To Repair Failures of VMs in minutes (MTTR)
belonging to given broker.

@param broker the broker to get the MTTR for
@return the current Mean Time To Repair Failures of VMs in minutes (MTTR)
or zero if no VM was destroyed due to Host failure
Computes the current Mean Time To Repair Failures of VMs in minutes ( MTTR ) belonging to given broker . @param broker the broker to get the MTTR for @return the current Mean Time To Repair Failures of VMs in minutes ( MTTR ) or zero if no VM was destroyed due to Host failure
public double meanTimeToRepairVmFaultsInMinutes(DatacenterBroker broker) {
        final double faultsFromBroker = getNumberOfFaults(broker);
        if(faultsFromBroker == 0){
            return 0;
        }
        return totalVmsRecoveryTimeInMinutes(broker) / faultsFromBroker;
    }
public double meanTimeToRepairVmFaultsInMinutes ( DatacenterBroker broker ) { final double faultsFromBroker = getNumberOfFaults ( broker ) ; if ( faultsFromBroker == 0 ) { return 0 ; } return totalVmsRecoveryTimeInMinutes ( broker ) / faultsFromBroker ; }
Computes the current Mean Time To Repair Failures of VMs in minutes (MTTR)
 belonging to given broker.
Computes the current Mean Time To Repair Failures of VMs in minutes ( MTTR ) belonging to given broker .