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
Merge branch 'klement/simgrid-klement' into master
[simgrid.git]
/
src
/
surf
/
network_wifi.cpp
diff --git
a/src/surf/network_wifi.cpp
b/src/surf/network_wifi.cpp
index 9c605241488e9da847686cd16c5eeafbbe29cd02..838c1507fcb921dca894272866ab2964b75457aa 100644
(file)
--- a/
src/surf/network_wifi.cpp
+++ b/
src/surf/network_wifi.cpp
@@
-62,9
+62,14
@@
s4u::Link::SharingPolicy NetworkWifiLink::get_sharing_policy()
return s4u::Link::SharingPolicy::WIFI;
}
return s4u::Link::SharingPolicy::WIFI;
}
+int NetworkWifiLink::get_host_count()
+{
+ return host_rates_.size();
+}
+
void NetworkWifiLink::refresh_decay_bandwidths(){
// Compute number of STAtion on the Access Point
void NetworkWifiLink::refresh_decay_bandwidths(){
// Compute number of STAtion on the Access Point
- int nSTA =
static_cast<int>(host_rates_.size()
);
+ int nSTA =
get_host_count(
);
std::vector<Metric> new_bandwidths;
for (auto bandwidth : bandwidths_){
std::vector<Metric> new_bandwidths;
for (auto bandwidth : bandwidths_){