Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
revalidate a tesh file after a fix due to please sonar
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 20 Jan 2017 00:03:18 +0000 (01:03 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 20 Jan 2017 00:03:23 +0000 (01:03 +0100)
+ remove yet another annoying sonar warning (on the exact line that I
  fixed in the previous run: the second task was never run in Java)

examples/java/energy/pstate/PstateRunner.java
examples/java/energy/pstate/energy_pstate.tesh

index 859149e..8001cbf 100644 (file)
@@ -56,7 +56,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);
index 09bf104..f371534 100644 (file)
@@ -11,14 +11,14 @@ $ java -classpath ${classpath:=.} energy/pstate/Main ${srcdir:=.}/../platforms/e
 > [MyHost1:dvfs_test:(2) 1.000000] [jmsg/INFO] Changing power peak value to 2.0E7 (at index 2)
 > [MyHost2:dvfs_test:(3) 1.000000] [jmsg/INFO] Changing power peak value to 2.0E7 (at index 2)
 > [MyHost1:dvfs_test:(2) 1.000000] [jmsg/INFO] Current power peak=2.0E7
-> [MyHost1:dvfs_test:(2) 1.000000] [jmsg/INFO] Task2 simulation time: 0.0
-> [MyHost1:dvfs_test:(2) 1.000000] [jmsg/INFO] Count of Processor states=3
 > [MyHost2:dvfs_test:(3) 1.000000] [jmsg/INFO] Current power peak=2.0E7
-> [MyHost2:dvfs_test:(3) 1.000000] [jmsg/INFO] Task2 simulation time: 0.0
-> [MyHost2:dvfs_test:(3) 1.000000] [jmsg/INFO] Count of Processor states=3
-> [MyHost1:dvfs_test:(2) 1.000000] [jmsg/INFO] Current power peak=2.0E7
-> [MyHost2:dvfs_test:(3) 1.000000] [jmsg/INFO] Current power peak=2.0E7
-> [1.000000] [jmsg/INFO] MSG_main finished; Cleaning up the simulation...
-> [1.000000] [surf_energy/INFO] Total energy of host MyHost1: 120.000000 Joules
-> [1.000000] [surf_energy/INFO] Total energy of host MyHost2: 120.000000 Joules
-> [1.000000] [surf_energy/INFO] Total energy of host MyHost3: 100.000000 Joules
+> [MyHost1:dvfs_test:(2) 6.000000] [jmsg/INFO] Task2 simulation time: 5.0
+> [MyHost1:dvfs_test:(2) 6.000000] [jmsg/INFO] Count of Processor states=3
+> [MyHost2:dvfs_test:(3) 6.000000] [jmsg/INFO] Task2 simulation time: 5.0
+> [MyHost2:dvfs_test:(3) 6.000000] [jmsg/INFO] Count of Processor states=3
+> [MyHost1:dvfs_test:(2) 6.000000] [jmsg/INFO] Current power peak=2.0E7
+> [MyHost2:dvfs_test:(3) 6.000000] [jmsg/INFO] Current power peak=2.0E7
+> [6.000000] [jmsg/INFO] MSG_main finished; Cleaning up the simulation...
+> [6.000000] [surf_energy/INFO] Total energy of host MyHost1: 645.000000 Joules
+> [6.000000] [surf_energy/INFO] Total energy of host MyHost2: 645.000000 Joules
+> [6.000000] [surf_energy/INFO] Total energy of host MyHost3: 600.000000 Joules