A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug the cloud API, it should work as expected now.
[simgrid.git]
/
examples
/
msg
/
cloud
/
masterslave_virtual_machines.c
diff --git
a/examples/msg/cloud/masterslave_virtual_machines.c
b/examples/msg/cloud/masterslave_virtual_machines.c
index
0ed5b90
..
87d1050
100644
(file)
--- a/
examples/msg/cloud/masterslave_virtual_machines.c
+++ b/
examples/msg/cloud/masterslave_virtual_machines.c
@@
-98,7
+98,6
@@
int master(int argc, char *argv[]) {
argv[2] = NULL;
MSG_vm_bind(vm, MSG_process_create_with_arguments(slavename,slave_fun,NULL,slaves[i],2,argv));
}
argv[2] = NULL;
MSG_vm_bind(vm, MSG_process_create_with_arguments(slavename,slave_fun,NULL,slaves[i],2,argv));
}
- work_batch(slaves_count*2);
XBT_INFO("Migrate everyone to the second host.");
for (i=0;i<xbt_dynar_length(vms);i++)
XBT_INFO("Migrate everyone to the second host.");
for (i=0;i<xbt_dynar_length(vms);i++)
@@
-111,8
+110,7
@@
int master(int argc, char *argv[]) {
MSG_vm_migrate(vm,slaves[2]);
MSG_vm_resume(vm);
}
MSG_vm_migrate(vm,slaves[2]);
MSG_vm_resume(vm);
}
-
-
+ work_batch(slaves_count*2);
XBT_INFO("Let's shut down the simulation. 10 first processes will be shut down cleanly while the second half will forcefully get killed");
for (i = 0; i < slaves_count; i++) {
XBT_INFO("Let's shut down the simulation. 10 first processes will be shut down cleanly while the second half will forcefully get killed");
for (i = 0; i < slaves_count; i++) {