X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7c047878cb2905079a6a0544f1a15134ae3ab3a6..38906765bf812b1c32df889f3ce7e72bb58e1326:/src/surf/storage_n11.cpp diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index a0d281d876..07146a7c09 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -54,10 +54,10 @@ void storage_register_callbacks() * Model * *********/ -void surf_storage_model_init_default(void) +void surf_storage_model_init_default() { surf_storage_model = new simgrid::surf::StorageN11Model(); - xbt_dynar_push(all_existing_models, &surf_storage_model); + all_existing_models->push_back(surf_storage_model); } namespace simgrid { @@ -162,7 +162,7 @@ void StorageN11Model::updateActionsState(double /*now*/, double delta) // Update the disk usage // Update the file size // For each action of type write - volatile double current_progress = + double current_progress = delta * lmm_variable_getvalue(action->getVariable()); long int incr = current_progress;