Log.formatLine("%.2f: [Host #"+getId()+"] Total allocated MIPS for VM #"+vm.getId()+" (Host #"+vm.getHost().getId()+") is %.2f, was requested %.2f out of total %.2f (%.2f%%)",CloudSim.clock(),totalAllocatedMips,totalRequestedMips,vm.getMips(),totalRequestedMips/vm.getMips()*100);
pesString.append(String.format(" PE #"+pe.getId()+": %.2f.",pe.getPeProvisioner().getTotalAllocatedMipsForVm(vm)));
pesString.append(String.format(" PE #"+pe.getId()+": %.2f.",pe.getPeProvisioner().getTotalAllocatedMipsForVm(vm)));
}
Log.formatLine("%.2f: [Host #"+getId()+"] MIPS for VM #"+vm.getId()+" by PEs ("+getPesNumber()+" * "+getVmScheduler().getPeCapacity()+")."+pesString,CloudSim.clock());
}
...
...
@@ -104,9 +103,9 @@ public class HostDynamicWorkload extends Host {
if(totalAllocatedMips+0.1<totalRequestedMips){
Log.formatLine("%.2f: [Host #"+getId()+"] Under allocated MIPS for VM #"+vm.getId()+": %.2f",CloudSim.clock(),totalRequestedMips-totalAllocatedMips);