FlatValue returns the exclusive value for this tag, computing the mean if a divisor is available.
()
| 301 | // FlatValue returns the exclusive value for this tag, computing the |
| 302 | // mean if a divisor is available. |
| 303 | func (t *Tag) FlatValue() int64 { |
| 304 | if t.FlatDiv == 0 { |
| 305 | return t.Flat |
| 306 | } |
| 307 | return t.Flat / t.FlatDiv |
| 308 | } |
| 309 | |
| 310 | // CumValue returns the inclusive value for this tag, computing the |
| 311 | // mean if a divisor is available. |
no outgoing calls
no test coverage detected