Skip to content

Commit

Permalink
#92: improving code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfsilva committed Apr 13, 2019
1 parent 3bb1233 commit 2d0fe91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wrench/services/compute/ComputeService.cpp
Expand Up @@ -249,7 +249,7 @@ namespace wrench {

unsigned long total_num_cores = 0;

for (auto it : getNumCores()) {
for (const auto& it : getNumCores()) {
total_num_cores += it.second;
}

Expand Down Expand Up @@ -296,7 +296,7 @@ namespace wrench {

unsigned long total_num_idle_cores = 0;

for (auto it : getNumIdleCores()) {
for (const auto& it : getNumIdleCores()) {
total_num_idle_cores += it.second;
}

Expand Down

0 comments on commit 2d0fe91

Please sign in to comment.