-/* Copyright (c) 2009, 2010. The SimGrid Team.
+/* Copyright (c) 2009-2010, 2012-2013. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
task_prio = atof(argv[2]);
XBT_INFO("Testing the trace integration cpu model: CpuTI");
- XBT_INFO("Task size: %lf", task_comp_size);
- XBT_INFO("Task prio: %lf", task_prio);
+ XBT_INFO("Task size: %f", task_comp_size);
+ XBT_INFO("Task prio: %f", task_prio);
/* Create and execute a single task. */
task = MSG_task_create("proc 0", task_comp_size, 0, NULL);
/** Main function */
int main(int argc, char *argv[])
{
- MSG_error_t res = MSG_OK;
+ msg_error_t res = MSG_OK;
/* Verify if the platform xml file was passed by command line. */
MSG_init(&argc, argv);
MSG_function_register("test_trace", test_trace);
/* Use the same file for platform and deployment. */
MSG_create_environment(argv[1]);
- MSG_launch_application(argv[1]);
+ MSG_launch_application(argv[2]);
/* Run the example. */
res = MSG_main();
- MSG_clean();
-
if (res == MSG_OK)
return 0;
else