Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memory leaks.
[simgrid.git] / examples / java / energy / pstate / PstateRunner.java
index 859149e..754e8b0 100644 (file)
@@ -9,7 +9,6 @@ import org.simgrid.msg.Host;
 import org.simgrid.msg.HostFailureException;
 import org.simgrid.msg.HostNotFoundException;
 import org.simgrid.msg.Msg;
-import org.simgrid.msg.NativeException;
 import org.simgrid.msg.Process;
 import org.simgrid.msg.Task;
 import org.simgrid.msg.TaskCancelledException;
@@ -56,7 +55,7 @@ public class PstateRunner extends Process {
                        Msg.info("Current power peak="+ currentPeak);
 
                        // Run a second task
-                       new Task("t1", workload, 0).execute();;
+                       new Task("t1", workload, 0).execute();
 
                        taskTime = Msg.getClock() - taskTime;
                        Msg.info("Task2 simulation time: "+ taskTime);
@@ -71,7 +70,7 @@ public class PstateRunner extends Process {
                }
        }
 
-       PstateRunner(Host host, String name, String[] args) throws NativeException  {
+       PstateRunner(Host host, String name, String[] args) {
                super(host, name, args);
        }