~canonical-hwe-team/powertop/packaging

Viewing all changes in revision 868.

  • Committer: Nivedita Swaminathan
  • Author(s): Daniel Black
  • Date: 2016-07-21 23:43:15 UTC
  • Revision ID: git-v1:ef79e2819ccac7c040d3203e66c1730a2c61c509
Calculate the number of joules consumed over time

The *joules_consumed functions where returning power so renamed to
reflect this.

Calculate the joules used at intervals by multipling the instantaneous
power by the time interval since the last measurement.

Signed-off-by: Daniel Black <daniel.black@au1.ibm.com>

v2: (Joe) Resolved a trivial hunk rejection in main.cpp +514 with
    6696d4e5f2e ("enable --auto-tune without debugfs"); Acked-by added

Acked-by: Joe Konno <joe.konno@intel.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: