X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b83ad9c88af4715987015ddc91ac93ad749df428..96c00b83efee36af986777b823c79938297ca17d:/src/surf/storage_interface.cpp diff --git a/src/surf/storage_interface.cpp b/src/surf/storage_interface.cpp index 554c9a22ff..50c66f4eaf 100644 --- a/src/surf/storage_interface.cpp +++ b/src/surf/storage_interface.cpp @@ -50,10 +50,8 @@ StorageModel::~StorageModel(){ ************/ Storage::Storage(Model* model, const char* name, lmm_system_t maxminSystem, double bread, double bwrite, - double bconnection, const char* type_id, const char* content_name, const char* content_type, - sg_size_t size, const char* attach) - : Resource(model, name, lmm_constraint_new(maxminSystem, this, bconnection)) - , contentType_(xbt_strdup(content_type)) + const char* type_id, const char* content_name, sg_size_t size, const char* attach) + : Resource(model, name, lmm_constraint_new(maxminSystem, this, MAX(bread, bwrite))) , size_(size) , usedSize_(0) , typeId_(xbt_strdup(type_id)) @@ -62,7 +60,7 @@ Storage::Storage(Model* model, const char* name, lmm_system_t maxminSystem, doub content_ = parseContent(content_name); attach_ = xbt_strdup(attach); turnOn(); - XBT_DEBUG("Create resource with Bconnection '%f' Bread '%f' Bwrite '%f' and Size '%llu'", bconnection, bread, bwrite, size); + XBT_DEBUG("Create resource with Bread '%f' Bwrite '%f' and Size '%llu'", bread, bwrite, size); constraintRead_ = lmm_constraint_new(maxminSystem, this, bread); constraintWrite_ = lmm_constraint_new(maxminSystem, this, bwrite); } @@ -75,7 +73,6 @@ Storage::~Storage(){ delete content_; } free(typeId_); - free(contentType_); free(attach_); }