Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cvonelm committed Oct 20, 2023
1 parent bc6efdd commit 3d04822
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/perf/counter/userspace/writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ bool Writer::handle(std::vector<UserspaceReadFormat>& data)

for (std::size_t i = 0; i < counter_buffer_.size(); i++)
{
// In get_scale, index 0 is reserved for the metric leader, which we don't have in the
// userspace metric mode, so add 1 to the counter index
values[i] = counter_buffer_[i] * counter_collection_.get_scale(i + 1);
}

Expand Down

0 comments on commit 3d04822

Please sign in to comment.