Chromium Code Reviews| Index: appengine/swarming/swarming_bot/api/os_utilities.py |
| diff --git a/appengine/swarming/swarming_bot/api/os_utilities.py b/appengine/swarming/swarming_bot/api/os_utilities.py |
| index 525451fabdd2ddeafc204eb2d7f42c026284846f..c8c0409d024e47af832b6086702d5af2928e6297 100644 |
| --- a/appengine/swarming/swarming_bot/api/os_utilities.py |
| +++ b/appengine/swarming/swarming_bot/api/os_utilities.py |
| @@ -1029,6 +1029,9 @@ def get_state(): |
| state[u'integrity'] = [integrity] |
| if sys.platform == 'darwin': |
| state[u'xcode'] = platforms.osx.get_xcode_state() |
| + temp = platforms.osx.get_cpu_temperature() |
| + if temp is not None: |
| + state[u'temp'] = temp |
|
Vadim Sh.
2017/07/28 18:15:56
on linux this is a dict. Is there a way to make t
M-A Ruel
2017/07/28 20:41:57
Generalized.
|
| if sys.platform == 'linux2': |
| temp = platforms.linux.get_temperatures() |
| if temp: |