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
Add migrate_vm example.
[simgrid.git]
/
examples
/
msg
/
cloud
/
simple_vm.c
diff --git
a/examples/msg/cloud/simple_vm.c
b/examples/msg/cloud/simple_vm.c
index
16b4844
..
548cf70
100644
(file)
--- a/
examples/msg/cloud/simple_vm.c
+++ b/
examples/msg/cloud/simple_vm.c
@@
-290,9
+290,8
@@
int main(int argc, char *argv[])
launch_master(pm0);
int res = MSG_main();
- XBT_INFO("
Simulation time %g
", MSG_get_clock());
+ XBT_INFO("
Bye (simulation time %g)
", MSG_get_clock());
- XBT_INFO("bye");
- return
0
;
+ return
!(res == MSG_OK)
;
}