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
Remove unused reference to setsets.
[simgrid.git]
/
examples
/
msg
/
chord
/
chord.c
diff --git
a/examples/msg/chord/chord.c
b/examples/msg/chord/chord.c
index
ee4a351
..
15d3423
100644
(file)
--- a/
examples/msg/chord/chord.c
+++ b/
examples/msg/chord/chord.c
@@
-272,7
+272,7
@@
int node(int argc, char *argv[])
double next_check_predecessor_date = init_time + periodic_check_predecessor_delay;
double next_lookup_date = init_time + periodic_lookup_delay;
double next_check_predecessor_date = init_time + periodic_check_predecessor_delay;
double next_lookup_date = init_time + periodic_lookup_delay;
- xbt_assert
0
(argc == 3 || argc == 5, "Wrong number of arguments for this node");
+ xbt_assert(argc == 3 || argc == 5, "Wrong number of arguments for this node");
// initialize my node
s_node_t node = {0};
// initialize my node
s_node_t node = {0};
@@
-890,8
+890,6
@@
static void random_lookup(node_t node)
*/
int main(int argc, char *argv[])
{
*/
int main(int argc, char *argv[])
{
- xbt_os_timer_t timer = xbt_os_timer_new();
-
if (argc < 3) {
printf("Usage: %s [-nb_bits=n] [-timeout=t] platform_file deployment_file\n", argv[0]);
printf("example: %s ../msg_platform.xml chord.xml\n", argv[0]);
if (argc < 3) {
printf("Usage: %s [-nb_bits=n] [-timeout=t] platform_file deployment_file\n", argv[0]);
printf("example: %s ../msg_platform.xml chord.xml\n", argv[0]);
@@
-933,10
+931,8
@@
int main(int argc, char *argv[])
MSG_function_register("node", node);
MSG_launch_application(application_file);
MSG_function_register("node", node);
MSG_launch_application(application_file);
- xbt_os_timer_start(timer);
MSG_error_t res = MSG_main();
MSG_error_t res = MSG_main();
- xbt_os_timer_stop(timer);
- XBT_CRITICAL("Simulation time %lf, messages created: %ld", xbt_os_timer_elapsed(timer), smx_total_comms);
+ XBT_CRITICAL("Messages created: %ld", smx_total_comms);
XBT_INFO("Simulated time: %g", MSG_get_clock());
MSG_clean();
XBT_INFO("Simulated time: %g", MSG_get_clock());
MSG_clean();