Skip to content

Commit

Permalink
simple-multicast now correctly scales network energy with number of i…
Browse files Browse the repository at this point in the history
…nstances.
  • Loading branch information
angshuman-parashar committed Apr 29, 2021
1 parent db03356 commit 9f9b713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/network-simple-multicast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,6 @@ std::uint64_t SimpleMulticastNetwork::WordBits() const
return 0;
}

STAT_ACCESSOR(double, SimpleMulticastNetwork, Energy, stats_.energy.at(pv))
STAT_ACCESSOR(double, SimpleMulticastNetwork, Energy, stats_.energy.at(pv) * stats_.utilized_instances.at(pv))

} // namespace model

0 comments on commit 9f9b713

Please sign in to comment.