Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Interface cleanup
[simgrid.git] / examples / java / cloud / migration / Daemon.java
index d3ac758..68a31f3 100644 (file)
@@ -3,6 +3,7 @@
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
+
 package cloud.migration;
 
 import org.simgrid.msg.*;
@@ -27,11 +28,11 @@ public class Daemon extends Process {
                 suspend(); // Suspend the process
             }
             currentTask = new Task(this.getHost().getName()+"-daemon-"+(i++), this.getHost().getSpeed()*100, 0);
-            Msg.info(currentTask.getName());
+//            Msg.info(currentTask.getName());
         }
     }
 
     public double getRemaining(){
-        return this.currentTask.getRemainingDuration();
-    }
+        return this.currentTask.getFlopsAmount();
     }
+}