X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aa1e6cc790aa637bae2c2fd03e3cf2c5365ae478..e34f4a3d8b2aa4081ada02909800ae3cc08d48d5:/src/surf/network_interface.hpp diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index 7c6d824847..9cb6cc7621 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -144,7 +144,7 @@ public: void turn_on() override; void turn_off() override; - void on_bandwidth_change(); + void on_bandwidth_change() const; virtual void set_bandwidth_profile(kernel::profile::Profile* profile); /*< setup the profile file with bandwidth events @@ -200,8 +200,8 @@ public: double lat_current_ = {}; double sharing_penalty_ = {}; double rate_ = {}; - s4u::Host& get_src() { return src_; } - s4u::Host& get_dst() { return dst_; } + s4u::Host& get_src() const { return src_; } + s4u::Host& get_dst() const { return dst_; } }; } // namespace resource } // namespace kernel