From 4662a0d602537104b4c92b11d22415015b3ce7df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20B=C3=A9daride?= Date: Wed, 28 May 2014 17:37:39 +0200 Subject: [PATCH] Fix bug windows msg-file --- src/surf/storage_n11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; -- 2.20.1