Commit 96510cb0 authored by Anton Beloglazov's avatar Anton Beloglazov

Small fixes

parent ad94c8aa
......@@ -10,7 +10,7 @@ public class Constants {
public final static boolean OUTPUT_CSV = false;
public final static double SCHEDULING_INTERVAL = 300;
public final static double SIMULATION_LIMIT = 24 * 60;
public final static double SIMULATION_LIMIT = 24 * 60 * 60;
public final static int CLOUDLET_LENGTH = 2500 * (int) SIMULATION_LIMIT;
public final static int CLOUDLET_PES = 1;
......
......@@ -19,6 +19,9 @@ import org.cloudbus.cloudsim.util.MathUtil;
* still allows the allocation of VMs that require more CPU capacity that is available.
* Oversubscription results in performance degradation. Each virtual PE cannot be allocated more CPU
* capacity than MIPS of a single PE.
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public class VmSchedulerTimeSharedOverSubscription extends VmSchedulerTimeShared {
......@@ -123,7 +126,7 @@ public class VmSchedulerTimeSharedOverSubscription extends VmSchedulerTimeShared
} else if (getVmsMigratingIn().contains(vmUid)) {
// the destination host only experiences 10% of the migrating VM's MIPS
mips *= 0.1;
// the final 10% are scaled
// the final 10% of the requested MIPS are scaled
mips *= scalingFactor;
} else {
mips *= scalingFactor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment