| 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.')
|
|
|
|
|