Bug 2807 - GetTotalEnergyConsumption is not updated correctly
GetTotalEnergyConsumption is not updated correctly
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: energy
ns-3.27
All All
: P3 normal
Assigned To: Cristiano Tapparello
:
Depends on:
Blocks: 2809
  Show dependency treegraph
 
Reported: 2017-10-24 16:03 UTC by Tommaso Pecorella
Modified: 2018-02-03 08:31 UTC (History)
2 users (show)

See Also:


Attachments
patch (2.51 KB, patch)
2017-10-24 16:05 UTC, Tommaso Pecorella
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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