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
Use MSG_host_by_name() instead of MSG_get_host_by_name()
[simgrid.git]
/
examples
/
msg
/
energy
/
onoff
/
onoff.c
diff --git
a/examples/msg/energy/onoff/onoff.c
b/examples/msg/energy/onoff/onoff.c
index
2a03378
..
40a0979
100644
(file)
--- a/
examples/msg/energy/onoff/onoff.c
+++ b/
examples/msg/energy/onoff/onoff.c
@@
-65,7
+65,7
@@
static void simulate_shutdown(msg_host_t host) {
}
static int onoff(int argc, char *argv[]) {
- msg_host_t host1 = MSG_
get_
host_by_name("MyHost1");
+ msg_host_t host1 = MSG_host_by_name("MyHost1");
XBT_INFO("Energetic profile: %s",
MSG_host_get_property_value(host1,"watt_per_state"));