Skip to content

Commit

Permalink
fixes the condition from > to >= for "other" blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Jan 11, 2021
1 parent f321857 commit 3e74f2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/storage/tree/flamebearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ func (t *Tree) FlamebearerStruct(maxNodes int) *Flamebearer {
levels = levels[1:]

name := string(tn.Name)
if tn.Total > minVal || name == "other" {

if tn.Total >= minVal || name == "other" {
var i int
var ok bool
if i, ok = nameLocationCache[name]; !ok {
Expand All @@ -61,9 +60,8 @@ func (t *Tree) FlamebearerStruct(maxNodes int) *Flamebearer {

xOffset += int(tn.Self)
otherTotal := uint64(0)

for _, n := range tn.ChildrenNodes {
if n.Total > minVal {
if n.Total >= minVal {
xOffsets = append([]int{xOffset}, xOffsets...)
levels = append([]int{level + 1}, levels...)
nodes = append([]*treeNode{n}, nodes...)
Expand Down

0 comments on commit 3e74f2c

Please sign in to comment.