-/* Copyright (c) 2007-2014. The SimGrid Team.
+/* Copyright (c) 2007-2015. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
static void task_data_init_clock(struct task_data *t)
{
- t->prev_computation_amount = MSG_task_get_remaining_computation(t->task);
+ t->prev_computation_amount = MSG_task_get_flops_amount(t->task);
t->prev_clock = MSG_get_clock();
}
static void task_data_get_clock(struct task_data *t)
{
- double now_computation_amount = MSG_task_get_remaining_computation(t->task);
+ double now_computation_amount = MSG_task_get_flops_amount(t->task);
double now_clock = MSG_get_clock();
double done = t->prev_computation_amount - now_computation_amount;
msg_vm_t vm2 = MSG_vm_create_core(pm2, "VM2");
msg_vm_t vm3 = MSG_vm_create_core(pm2, "VM3");
- s_ws_params_t params;
+ s_vm_params_t params;
memset(¶ms, 0, sizeof(params));
params.ramsize = 1L * 1024 * 1024;
params.skip_stage1 = 1;