Skip to content

Commit 9f9b713

Browse files
simple-multicast now correctly scales network energy with number of instances.
1 parent db03356 commit 9f9b713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/network-simple-multicast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,6 @@ std::uint64_t SimpleMulticastNetwork::WordBits() const
295295
return 0;
296296
}
297297

298-
STAT_ACCESSOR(double, SimpleMulticastNetwork, Energy, stats_.energy.at(pv))
298+
STAT_ACCESSOR(double, SimpleMulticastNetwork, Energy, stats_.energy.at(pv) * stats_.utilized_instances.at(pv))
299299

300300
} // namespace model

0 commit comments

Comments
 (0)