diff options
Diffstat (limited to 'base/stats_table.cc')
-rw-r--r-- | base/stats_table.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/stats_table.cc b/base/stats_table.cc index d2b6a9e..31f85d5 100644 --- a/base/stats_table.cc +++ b/base/stats_table.cc @@ -502,9 +502,9 @@ int StatsTable::GetRowValue(int index, int pid) const { int rv = 0; int* row = impl_->row(index); - for (int index = 0; index < impl_->max_threads(); index++) { - if (pid == 0 || *impl_->thread_pid(index) == pid) - rv += row[index]; + for (int slot_id = 0; slot_id < impl_->max_threads(); slot_id++) { + if (pid == 0 || *impl_->thread_pid(slot_id) == pid) + rv += row[slot_id]; } return rv; } |