Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix another glitch
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 5 Dec 2017 08:28:33 +0000 (09:28 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 5 Dec 2017 08:28:33 +0000 (09:28 +0100)
examples/msg/energy-vm/energy-vm.c
examples/msg/energy-vm/energy-vm.tesh

index 6afa6fa..1bdd14b 100644 (file)
@@ -27,7 +27,7 @@ static int dvfs(int argc, char *argv[])
   XBT_INFO("Creating and starting two VMs");
   msg_vm_t vm_host1 = MSG_vm_create(host1, "vm_host1", 1, 2048, 10, 50);
   MSG_vm_start(vm_host1);
-  msg_vm_t vm_host2 = MSG_vm_create(host2, "vm_host3", 1, 2048, 10, 50);
+  msg_vm_t vm_host2 = MSG_vm_create(host2, "vm_host2", 1, 2048, 10, 50);
   MSG_vm_start(vm_host2);
 
   XBT_INFO("Create two tasks on Host1: both inside a VM");
index f6195e1..47ba393 100644 (file)
@@ -14,7 +14,7 @@ $ ${bindir:=.}/energy-vm$EXEEXT ${platfdir}/energy_platform.xml "--log=root.fmt:
 > [  6.000000] (6:p31@MyHost3) This worker is done.
 > [  6.000000] (3:p12@vm_host1) This worker is done.
 > [  6.000000] (2:p11@vm_host1) This worker is done.
-> [  6.000000] (4:p21@vm_host3) This worker is done.
+> [  6.000000] (4:p21@vm_host2) This worker is done.
 > [ 10.000000] (0:maestro@) Total energy consumption: 4320.000000 Joules (used hosts: 4320.000000 Joules; unused/idle hosts: 0.000000)
 > [ 10.000000] (0:maestro@) Total simulation time: 10.00; Host2 and Host3 must have the exact same energy consumption; Host1 is multi-core and will differ.
 > [ 10.000000] (0:maestro@) Energy consumption of host MyHost1: 1120.000000 Joules