Skip to content

Commit

Permalink
pkg/query: Post rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
metalmatze committed Aug 23, 2023
1 parent 6bbd2a8 commit d342e10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/query/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (tb *tableBuilder) Release() {
}

func (tb *tableBuilder) appendRow(
r profile.RecordReader,
r *profile.RecordReader,
sampleRow, locationRow, lineRow int,
leaf bool,
) error {
Expand Down Expand Up @@ -377,7 +377,7 @@ func (tb *tableBuilder) appendRow(
return nil
}

func (tb *tableBuilder) mergeRow(r profile.RecordReader, mergeRow, sampleRow int, isLeaf bool) {
func (tb *tableBuilder) mergeRow(r *profile.RecordReader, mergeRow, sampleRow int, isLeaf bool) {
tb.builderCumulative.Add(mergeRow, r.Value.Value(sampleRow))
if r.Diff.Value(sampleRow) != 0 {
tb.builderCumulativeDiff.Add(mergeRow, r.Diff.Value(sampleRow))
Expand Down
1 change: 0 additions & 1 deletion pkg/query/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ func TestGenerateTable(t *testing.T) {
require.Equal(t, int64(0), flatDiffColumn.Value(i))

found = true

}
}

Expand Down

0 comments on commit d342e10

Please sign in to comment.