cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudsimplus/faultinjection/HostFaultInjection.java
public double meanTimeBetweenVmFaultsInMinutes(DatacenterBroker broker) {
        final double faultsFromBroker = getNumberOfFaults(broker);
        if(faultsFromBroker == 0){
            return 0;
        }

        final double totalVmsRecoveryTimeInMinutes = meanTimeToRepairVmFaultsInMinutes(broker);
        return getSimulation().clockInMinutes() - totalVmsRecoveryTimeInMinutes;
    }
/**
     * Computes the current Mean Time Between host Failures (MTBF) in minutes,
     * which affected VMs from a given broker.
     * It uses a straightforward way to compute the MTBF.
     * Since it's stored the VM recovery times, it's possible
     * to use such values to make easier the MTBF computation,
     * different from the Hosts MTBF.
     *
     * @param broker the broker to get the MTBF for
     * @return the current mean time (in minutes) between Host failures (MTBF)
     * or zero if no VM was destroyed due to Host failure
     * @see #meanTimeBetweenHostFaultsInMinutes()
     */
Computes the current Mean Time Between host Failures (MTBF) in minutes,
which affected VMs from a given broker.
It uses a straightforward way to compute the MTBF.
Since it's stored the VM recovery times, it's possible
to use such values to make easier the MTBF computation,
different from the Hosts MTBF.

@param broker the broker to get the MTBF for
@return the current mean time (in minutes) between Host failures (MTBF)
or zero if no VM was destroyed due to Host failure
@see #meanTimeBetweenHostFaultsInMinutes()
Computes the current Mean Time Between host Failures ( MTBF ) in minutes which affected VMs from a given broker . It uses a straightforward way to compute the MTBF . Since it ' s stored the VM recovery times it ' s possible to use such values to make easier the MTBF computation different from the Hosts MTBF . @param broker the broker to get the MTBF for @return the current mean time ( in minutes ) between Host failures ( MTBF ) or zero if no VM was destroyed due to Host failure @see #meanTimeBetweenHostFaultsInMinutes ()
public double meanTimeBetweenVmFaultsInMinutes(DatacenterBroker broker) {
        final double faultsFromBroker = getNumberOfFaults(broker);
        if(faultsFromBroker == 0){
            return 0;
        }
        final double totalVmsRecoveryTimeInMinutes = meanTimeToRepairVmFaultsInMinutes(broker);
        return getSimulation().clockInMinutes() - totalVmsRecoveryTimeInMinutes;
    }
public double meanTimeBetweenVmFaultsInMinutes ( DatacenterBroker broker ) { final double faultsFromBroker = getNumberOfFaults ( broker ) ; if ( faultsFromBroker == 0 ) { return 0 ; } final double totalVmsRecoveryTimeInMinutes = meanTimeToRepairVmFaultsInMinutes ( broker ) ; return getSimulation ( ) . clockInMinutes ( ) - totalVmsRecoveryTimeInMinutes ; }
Computes the current Mean Time Between host Failures (MTBF) in minutes,
 which affected VMs from a given broker.
Computes the current Mean Time Between host Failures ( MTBF ) in minutes which affected VMs from a given broker .