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
make WifiLink depend on LinkImpl directly
[simgrid.git]
/
src
/
surf
/
network_wifi.cpp
diff --git
a/src/surf/network_wifi.cpp
b/src/surf/network_wifi.cpp
index
50529b3
..
10eb70b
100644
(file)
--- a/
src/surf/network_wifi.cpp
+++ b/
src/surf/network_wifi.cpp
@@
-19,13
+19,12
@@
namespace resource {
NetworkWifiLink::NetworkWifiLink(NetworkCm02Model* model, const std::string& name, std::vector<double> bandwidths,
lmm::System* system)
NetworkWifiLink::NetworkWifiLink(NetworkCm02Model* model, const std::string& name, std::vector<double> bandwidths,
lmm::System* system)
- : NetworkCm02Link(model, name, 1 / sg_bandwidth_factor, 0, s4u::Link::SharingPolicy::WIFI, system)
-// : LinkImpl(model, name, system->constraint_new(this, 1))
+ : LinkImpl(model, name, system->constraint_new(this, 1))
{
for (auto bandwidth : bandwidths)
bandwidths_.push_back({bandwidth, 1.0, nullptr});
{
for (auto bandwidth : bandwidths)
bandwidths_.push_back({bandwidth, 1.0, nullptr});
-
//
simgrid::s4u::Link::on_creation(this->piface_);
+ simgrid::s4u::Link::on_creation(this->piface_);
}
void NetworkWifiLink::set_host_rate(s4u::Host* host, int rate_level)
}
void NetworkWifiLink::set_host_rate(s4u::Host* host, int rate_level)