]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/network_interface.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Variables captured by copy are constant and cannot be std::move'd.
[simgrid.git] / src / surf / network_interface.cpp
index 949e071e985be8bcedf68a20629a27747366d785..8084ae54bbdae132f9ad368606326c5acbf3a850 100644 (file)
@@ -109,12 +109,12 @@ bool LinkImpl::is_used() const
   return get_model()->get_maxmin_system()->constraint_used(get_constraint());
 }
 
-double LinkImpl::get_latency()
+double LinkImpl::get_latency() const
 {
   return latency_.peak * latency_.scale;
 }
 
-double LinkImpl::get_bandwidth()
+double LinkImpl::get_bandwidth() const
 {
   return bandwidth_.peak * bandwidth_.scale;
 }