From eaf6612271a7402a31dad8dd182ed5c92c977504 Mon Sep 17 00:00:00 2001 From: Andreas Egger Date: Thu, 13 Jun 2013 21:02:51 +0200 Subject: [PATCH] Fixed last bug in migration --- src/at/ac/tuwien/lsdc/sched/AbstractSchedulerWithMigration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/at/ac/tuwien/lsdc/sched/AbstractSchedulerWithMigration.java b/src/at/ac/tuwien/lsdc/sched/AbstractSchedulerWithMigration.java index 737ca32..6161786 100644 --- a/src/at/ac/tuwien/lsdc/sched/AbstractSchedulerWithMigration.java +++ b/src/at/ac/tuwien/lsdc/sched/AbstractSchedulerWithMigration.java @@ -54,7 +54,7 @@ public abstract class AbstractSchedulerWithMigration extends AbstractScheduler { } if (currentVM.getApplications().size() == 0) { currentPM.stopVirtualMachine(currentVM); - if (currentPM.getTotalVMs() == 0) { + if (currentPM.countCurrentlyRunningVMs() == 0) { manager.stopPhysicalMachine(currentPM.getId()); } } -- 2.43.0