From d342e107ea9eb07cb7186d52ca740b9d5c8c00ee Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Wed, 23 Aug 2023 17:24:41 +0200 Subject: [PATCH] pkg/query: Post rebase fixes --- pkg/query/table.go | 4 ++-- pkg/query/table_test.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/query/table.go b/pkg/query/table.go index 732c59afef1..416b3bd1713 100644 --- a/pkg/query/table.go +++ b/pkg/query/table.go @@ -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 { @@ -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)) diff --git a/pkg/query/table_test.go b/pkg/query/table_test.go index 7bf982dde36..77fed422ac3 100644 --- a/pkg/query/table_test.go +++ b/pkg/query/table_test.go @@ -133,7 +133,6 @@ func TestGenerateTable(t *testing.T) { require.Equal(t, int64(0), flatDiffColumn.Value(i)) found = true - } }