Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
give access to disk's read and write (nomimal) bandwidth values
[simgrid.git] / src / kernel / resource / DiskImpl.cpp
index 7c759a7..18c7035 100644 (file)
@@ -37,10 +37,13 @@ DiskModel::~DiskModel()
 
 DiskImpl::DiskImpl(kernel::resource::Model* model, const std::string& name, kernel::lmm::System* maxminSystem,
                    double read_bw, double write_bw)
-    : Resource(model, name, maxminSystem->constraint_new(this, std::max(read_bw, write_bw))), piface_(name, this)
+    : Resource(model, name, maxminSystem->constraint_new(this, std::max(read_bw, write_bw)))
+    , piface_(name, this)
+    , read_bw_(read_bw)
+    , write_bw_(write_bw)
 {
   DiskImpl::turn_on();
-  XBT_DEBUG("Create resource with read_bw '%f' write_bw '%f'", read_bw, write_bw);
+  XBT_DEBUG("Create resource with read_bw '%f' write_bw '%f'", read_bw_, write_bw_);
   constraint_read_  = maxminSystem->constraint_new(this, read_bw);
   constraint_write_ = maxminSystem->constraint_new(this, write_bw);
 }