X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/996ff4a9b3cad349b4dc4d787a439a4b274e3e36..10c02c776839657b86a6f1bdbb9817a8268bc397:/src/surf/plugins/energy.cpp diff --git a/src/surf/plugins/energy.cpp b/src/surf/plugins/energy.cpp index bbbb065afc..5823df6d5a 100644 --- a/src/surf/plugins/energy.cpp +++ b/src/surf/plugins/energy.cpp @@ -201,8 +201,7 @@ static void onCreation(simgrid::s4u::Host& host) { host.extension_set(new HostEnergy(&host)); } -static void onActionStateChange(simgrid::surf::CpuAction *action, - e_surf_action_state_t old, e_surf_action_state_t cur) { +static void onActionStateChange(simgrid::surf::CpuAction *action, e_surf_action_state_t previous) { const char *name = getActionCpu(action)->getName(); simgrid::surf::Host *host = sg_host_by_name(name)->extension(); simgrid::surf::VirtualMachine *vm = dynamic_cast(host);