Bug 2807

Summary: GetTotalEnergyConsumption is not updated correctly
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: energyAssignee: Cristiano Tapparello <cristiano.tapparello>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs, sebastien.deronne
Priority: P3    
Version: ns-3.27   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 2809    
Attachments: patch

Description Tommaso Pecorella 2017-10-24 16:03:21 UTC
GetTotalEnergyConsumption is meant to be used at the end of simulation to report the total energy consumption.
However, it only reports the energy consumption calculated when the last model update was done.
E.g., if a WifiNetdevice has been in given state for a long time and then the simulation stops, the total energy consumption is the one of the last update, neglecting the final period.
Comment 1 Tommaso Pecorella 2017-10-24 16:05:17 UTC
Created attachment 2936 [details]
patch
Comment 2 sebastien.deronne 2018-02-03 08:31:26 UTC
pushed in changeset 13272:3b3cfd764081