Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid
[simgrid.git] / examples / msg / trace-link-srcdst-user-variables / trace-link-srcdst-user-variables.c
index ba3eb08..c9c4503 100644 (file)
@@ -27,7 +27,7 @@ static void create_and_execute_task (void)
   MSG_task_destroy (task);
 }
 
-static int master(int argc, char *argv[])
+static int trace_fun(int argc, char *argv[])
 {
   //Set initial values for the link user variables
   //This example uses source and destination where source and destination are the name of hosts inthe platform file.
@@ -73,9 +73,9 @@ int main(int argc, char *argv[])
   TRACE_link_variable_declare("Link_Capacity");
   TRACE_link_variable_declare_with_color ("Link_Utilization", "0.9 0.1 0.1");
 
-  //register "master" and "slave" functions and launch deployment
-  MSG_function_register("master", master);
-  MSG_function_register("slave", master);
+  //register functions and launch deployment
+  MSG_function_register("master", trace_fun);
+  MSG_function_register("worker", trace_fun);
   MSG_launch_application(argv[2]);
 
   MSG_main();