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
Remove this output.
[simgrid.git]
/
src
/
surf
/
storage.c
diff --git
a/src/surf/storage.c
b/src/surf/storage.c
index
15db4c7
..
7aed75e
100644
(file)
--- a/
src/surf/storage.c
+++ b/
src/surf/storage.c
@@
-76,12
+76,9
@@
static surf_action_t storage_action_close(void *storage, surf_file_t fp)
static surf_action_t storage_action_read(void *storage, void* ptr, double size, size_t nmemb, surf_file_t stream)
{
static surf_action_t storage_action_read(void *storage, void* ptr, double size, size_t nmemb, surf_file_t stream)
{
- char *filename = stream->name;
surf_stat_t content = stream->content;
surf_stat_t content = stream->content;
- XBT_INFO("\tRead file '%s' size '%f/%f'",filename,content->stat.size,size);
if(size > content->stat.size)
size = content->stat.size;
if(size > content->stat.size)
size = content->stat.size;
- XBT_INFO("Really read file '%s' for %f",filename,size);
surf_action_t action = storage_action_execute(storage,size,READ);
return action;
}
surf_action_t action = storage_action_execute(storage,size,READ);
return action;
}
@@
-212,10
+209,8
@@
static void storage_update_actions_state(double now, double delta)
if(action->type == WRITE)
{
double rate = lmm_variable_getvalue(GENERIC_LMM_ACTION(action).variable);
if(action->type == WRITE)
{
double rate = lmm_variable_getvalue(GENERIC_LMM_ACTION(action).variable);
- XBT_INFO("Update %f + %f = %f",((surf_action_t)action)->file->content->stat.size,delta * rate,((surf_action_t)action)->file->content->stat.size+delta * rate);
((storage_t)(action->storage))->used_size += delta * rate; // disk usage
((surf_action_t)action)->file->content->stat.size += delta * rate; // file size
((storage_t)(action->storage))->used_size += delta * rate; // disk usage
((surf_action_t)action)->file->content->stat.size += delta * rate; // file size
- XBT_INFO("Have updating to %f",((surf_action_t)action)->file->content->stat.size);
}
}
}
}