Index: build/android/pylib/perf/thermal_throttle.py |
diff --git a/build/android/pylib/perf/thermal_throttle.py b/build/android/pylib/perf/thermal_throttle.py |
index 60156de70cbf2a1d023ab98390239ebe0691f923..87ae9665a9d8a43522c430baa02f4c08f19a1c38 100644 |
--- a/build/android/pylib/perf/thermal_throttle.py |
+++ b/build/android/pylib/perf/thermal_throttle.py |
@@ -102,7 +102,7 @@ class ThermalThrottle(object): |
return False |
has_been_throttled = False |
serial_number = self._device.old_interface.GetDevice() |
- log = self._device.old_interface.RunShellCommand('dmesg -c') |
+ log = self._device.RunShellCommand('dmesg -c') |
degree_symbol = unichr(0x00B0) |
for line in log: |
if self._detector.BecameThrottled(line): |
@@ -128,8 +128,7 @@ class ThermalThrottle(object): |
serial_number, temperature, degree_symbol) |
# Print temperature of battery, to give a system temperature |
- dumpsys_log = self._device.old_interface.RunShellCommand( |
- 'dumpsys battery') |
+ dumpsys_log = self._device.RunShellCommand('dumpsys battery') |
for line in dumpsys_log: |
if 'temperature' in line: |
btemp = float([s for s in line.split() if s.isdigit()][0]) / 10.0 |