- msg_task_t pong_task = MSG_task_create("large communication (bandwidth bound)", 0.0, 1e9, NULL);
- pong_task->data = xbt_new(double, 1);
- *(double*)pong_task->data = now;
- XBT_INFO("task_bw->data = %.3f", *((double*)pong_task->data));
+ msg_task_t pong_task = MSG_task_create("large communication (bandwidth bound)", 0.0, 1e9, &now);
+ XBT_INFO("task_bw->data = %.3f", *((double*)MSG_task_get_data(pong_task)));