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

Unified Diff: client/cros/power_status.py

Issue 6627029: Refactor site_power_status, power_strip modules into client/cros. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 9 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 | client/cros/power_strip.py » ('j') | 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/common_lib/site_power_status.py b/client/cros/power_status.py
similarity index 98%
rename from client/common_lib/site_power_status.py
rename to client/cros/power_status.py
index 488aa562cc7f4e47643a5433c2c05bcf03818aa5..17a2358c357c8a8a341ee8104bd2a3238fe75cfd 100644
--- a/client/common_lib/site_power_status.py
+++ b/client/cros/power_status.py
@@ -1,6 +1,6 @@
import glob, logging, os, re, time
-from autotest_lib.client.bin import utils as bin_utils
-from autotest_lib.client.common_lib import error, utils
+from autotest_lib.client.bin import utils
+from autotest_lib.client.common_lib import error
class DevStat(object):
@@ -263,7 +263,7 @@ class CPUIdleStats(object):
# currently not factored out.
def __init__(self):
- self._num_cpus = bin_utils.count_cpus()
+ self._num_cpus = utils.count_cpus()
self._time = time.time()
self._stats = self._read_stats()
« no previous file with comments | « no previous file | client/cros/power_strip.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698