FlatValue returns the exclusive value for this node, computing the mean if a divisor is available.
()
| 102 | // FlatValue returns the exclusive value for this node, computing the |
| 103 | // mean if a divisor is available. |
| 104 | func (n *Node) FlatValue() int64 { |
| 105 | if n.FlatDiv == 0 { |
| 106 | return n.Flat |
| 107 | } |
| 108 | return n.Flat / n.FlatDiv |
| 109 | } |
| 110 | |
| 111 | // CumValue returns the inclusive value for this node, computing the |
| 112 | // mean if a divisor is available. |
nothing calls this directly
no outgoing calls
no test coverage detected