Log.formatLine("%.2f: 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);
if(vm.isInMigration()){
Log.printLine("VM #"+vm.getId()+" is in migration");
totalAllocatedMips/=0.9;// performance degradation due to migration - 10%
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);
if(getVmsMigratingIn().contains(vm)){
Log.formatLine("%.2f: [Host #"+getId()+"] VM #"+vm.getId()+" is being migrated to Host #"+getId(),CloudSim.clock());
}else{
if(totalAllocatedMips+0.1<totalRequestedMips){
Log.formatLine("%.2f: [Host #"+getId()+"] Under allocated MIPS for VM #"+vm.getId()+": %.2f",CloudSim.clock(),totalRequestedMips-totalAllocatedMips);