A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Rename PerPageCopy to ChunkedData (and move in its own files)
[simgrid.git]
/
src
/
surf
/
storage_n11.cpp
diff --git
a/src/surf/storage_n11.cpp
b/src/surf/storage_n11.cpp
index
6baacc2
..
42fef37
100644
(file)
--- a/
src/surf/storage_n11.cpp
+++ b/
src/surf/storage_n11.cpp
@@
-332,10
+332,8
@@
void StorageN11Model::updateActionsState(double /*now*/, double delta)
action->p_storage->m_usedSize += incr; // disk usage
action->p_file->current_position+= incr; // current_position
action->p_storage->m_usedSize += incr; // disk usage
action->p_file->current_position+= incr; // current_position
- // which becomes the new file size only if it's greater than the current
- // file size
- if (action->p_file->current_position > action->p_file->size)
- action->p_file->size = action->p_file->current_position ;
+ // which becomes the new file size
+ action->p_file->size = action->p_file->current_position ;
sg_size_t *psize = xbt_new(sg_size_t,1);
*psize = action->p_file->size;
sg_size_t *psize = xbt_new(sg_size_t,1);
*psize = action->p_file->size;