[Telemetry] Use a _is_monitoring_power variable to keep track of sysfs_power_monitor...
commita469966064077a5715056a93217745b9f505b2ab
authornednguyen <nednguyen@google.com>
Sat, 25 Jul 2015 15:12:03 +0000 (25 08:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 25 Jul 2015 15:13:18 +0000 (25 15:13 +0000)
tree7d9811f5d8ce4cdcad02aafaac7cf73a00b4d10c
parentce8820ca9f57406653a5983b0cd5bf4e5a60d390
[Telemetry] Use a _is_monitoring_power variable to keep track of sysfs_power_monitor state

self._initial_cstate can be empty, which render the check of whether
power is monitor based on this variable invalid.

BUG=513677
TBR=sullivan@chromium.org

Review URL: https://codereview.chromium.org/1258793002

Cr-Commit-Position: refs/heads/master@{#340412}
tools/telemetry/telemetry/internal/platform/power_monitor/sysfs_power_monitor.py