X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/97a8953505beb95c8e2689c2f554905155cc8b47..7faacaf4e1fdc3014c3ed4e047c0264986771466:/src/surf/storage_n11.cpp diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index a748adab32..4e07fe53c7 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -313,7 +313,7 @@ void StorageN11Model::updateActionsState(double /*now*/, double delta) /* Hack to avoid rounding differences between x86 and x86_64 * (note that the next sizes are of type sg_size_t). */ long incr = delta * rate + MAXMIN_PRECISION; - action->p_storage->m_usedSize += (incr - action->p_file->size); // disk usage + action->p_storage->m_usedSize += incr; // disk usage action->p_file->size += incr; // file size sg_size_t *psize = xbt_new(sg_size_t,1); @@ -345,7 +345,6 @@ void StorageN11Model::updateActionsState(double /*now*/, double delta) action->setState(SURF_ACTION_DONE); } } - return; }