summaryrefslogtreecommitdiffstats
path: root/runtime/utils.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-05 02:42:56 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-11-05 02:42:56 +0000
commit78a3233313260665fe82ba56257855e043bca3d4 (patch)
tree46622bf088b3f30d2c6d8a5b548519137c88c867 /runtime/utils.cc
parentfe50a0f644bf57a92612d08ad21dc4ea5a2f652a (diff)
parent277ccbd200ea43590dfc06a93ae184a765327ad0 (diff)
downloadart-78a3233313260665fe82ba56257855e043bca3d4.zip
art-78a3233313260665fe82ba56257855e043bca3d4.tar.gz
art-78a3233313260665fe82ba56257855e043bca3d4.tar.bz2
Merge "ART: More warnings"
Diffstat (limited to 'runtime/utils.cc')
-rw-r--r--runtime/utils.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/utils.cc b/runtime/utils.cc
index 070d85e..0373708 100644
--- a/runtime/utils.cc
+++ b/runtime/utils.cc
@@ -1109,8 +1109,8 @@ std::string GetSchedulerGroupName(pid_t tid) {
Split(cgroup_lines[i], ':', &cgroup_fields);
std::vector<std::string> cgroups;
Split(cgroup_fields[1], ',', &cgroups);
- for (size_t i = 0; i < cgroups.size(); ++i) {
- if (cgroups[i] == "cpu") {
+ for (size_t j = 0; j < cgroups.size(); ++j) {
+ if (cgroups[j] == "cpu") {
return cgroup_fields[2].substr(1); // Skip the leading slash.
}
}