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
more than 100 codacy treats, not bad
[simgrid.git]
/
examples
/
msg
/
cloud-masterworker
/
cloud-masterworker.c
diff --git
a/examples/msg/cloud-masterworker/cloud-masterworker.c
b/examples/msg/cloud-masterworker/cloud-masterworker.c
index
0c13cc2
..
41fa989
100644
(file)
--- a/
examples/msg/cloud-masterworker/cloud-masterworker.c
+++ b/
examples/msg/cloud-masterworker/cloud-masterworker.c
@@
-1,5
+1,4
@@
-/* Copyright (c) 2007-2015. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-152,7
+151,7
@@
static int master_fun(int argc, char *argv[])
XBT_INFO("# Shutdown the half of worker processes gracefully. The remaining half will be forcibly killed.");
for (i = 0; i < nb_workers; i++) {
char mbox[MAXMBOXLEN];
XBT_INFO("# Shutdown the half of worker processes gracefully. The remaining half will be forcibly killed.");
for (i = 0; i < nb_workers; i++) {
char mbox[MAXMBOXLEN];
- snprintf(mbox, MAXMBOXLEN, "MBOX:WRK%02
d
", i);
+ snprintf(mbox, MAXMBOXLEN, "MBOX:WRK%02
u
", i);
msg_task_t finalize = MSG_task_create("finalize", 0, 0, 0);
MSG_task_send(finalize, mbox);
}
msg_task_t finalize = MSG_task_create("finalize", 0, 0, 0);
MSG_task_send(finalize, mbox);
}