Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: client/cros/power_status.py

Issue 6823014: power_status: Corrected logging string concatenation (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cros/power_status.py
diff --git a/client/cros/power_status.py b/client/cros/power_status.py
index 4510ae3b33eb227a89e36e1d0cc84fde425eecb7..063c4b52af5f9742ad92c572d87a9d6125e57359 100644
--- a/client/cros/power_status.py
+++ b/client/cros/power_status.py
@@ -242,11 +242,11 @@ class SysStat(object):
self.thermal = [ ThermalStat(self.thermal_path) ]
try:
- if self.thermal[0].temp < self.min_temp * 1000:
- self.min_temp = float(self.thermal[0].temp) / 1000
- if self.thermal[0].temp > self.max_temp * 1000:
- self.max_temp = float(self.thermal[0].temp) / 1000
- logging.info('Temperature reading: ' + self.thermal[0].temp)
+ if self.thermal[0].temp < self.min_temp:
+ self.min_temp = self.thermal[0].temp
+ if self.thermal[0].temp > self.max_temp:
+ self.max_temp = self.thermal[0].temp
+ logging.info('Temperature reading: ' + str(self.thermal[0].temp))
except:
logging.error('Could not read temperature, skipping.')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698