Skip to content

Commit 3e74f2c

Browse files
committed
fixes the condition from > to >= for "other" blocks
1 parent f321857 commit 3e74f2c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/storage/tree/flamebearer.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ func (t *Tree) FlamebearerStruct(maxNodes int) *Flamebearer {
3535
levels = levels[1:]
3636

3737
name := string(tn.Name)
38-
if tn.Total > minVal || name == "other" {
39-
38+
if tn.Total >= minVal || name == "other" {
4039
var i int
4140
var ok bool
4241
if i, ok = nameLocationCache[name]; !ok {
@@ -61,9 +60,8 @@ func (t *Tree) FlamebearerStruct(maxNodes int) *Flamebearer {
6160

6261
xOffset += int(tn.Self)
6362
otherTotal := uint64(0)
64-
6563
for _, n := range tn.ChildrenNodes {
66-
if n.Total > minVal {
64+
if n.Total >= minVal {
6765
xOffsets = append([]int{xOffset}, xOffsets...)
6866
levels = append([]int{level + 1}, levels...)
6967
nodes = append([]*treeNode{n}, nodes...)

0 commit comments

Comments
 (0)