From 9f9b713a23dfab425da2a6dd0a162a1d70a1adae Mon Sep 17 00:00:00 2001 From: Angshuman Parashar Date: Thu, 29 Apr 2021 11:36:50 -0700 Subject: [PATCH] simple-multicast now correctly scales network energy with number of instances. --- src/model/network-simple-multicast.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/network-simple-multicast.cpp b/src/model/network-simple-multicast.cpp index 441d81e6..404f557b 100644 --- a/src/model/network-simple-multicast.cpp +++ b/src/model/network-simple-multicast.cpp @@ -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