From: Paul Bédaride Date: Wed, 28 May 2014 15:37:39 +0000 (+0200) Subject: Fix bug windows msg-file X-Git-Tag: v3_11~18 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4662a0d602537104b4c92b11d22415015b3ce7df Fix bug windows msg-file --- diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index 71a03fa294..046b6e82f0 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -311,7 +311,7 @@ void StorageN11Model::updateActionsState(double /*now*/, double delta) // Update the disk usage // Update the file size // For each action of type write - double current_progress = + volatile double current_progress = delta * lmm_variable_getvalue(action->getVariable()); long int incr = current_progress; @@ -322,7 +322,7 @@ void StorageN11Model::updateActionsState(double /*now*/, double delta) lrint(action->progress + current_progress), lrint(action->progress)+ incr); - /* Take care of rounding error accumulation */ + /* take care of rounding error accumulation */ if (lrint(action->progress + current_progress) > lrint(action->progress)+ incr) incr++;