Min returns the smallest observed value, or 0 if no observations have been added.
()
| 63 | |
| 64 | // Min returns the smallest observed value, or 0 if no observations have been added. |
| 65 | func (s *StatVar) Min() float64 { |
| 66 | if s.count == 0 { |
| 67 | return 0 |
| 68 | } |
| 69 | return s.min |
| 70 | } |
| 71 | |
| 72 | // Max returns the largest observed value, or 0 if no observations have been added. |
| 73 | func (s *StatVar) Max() float64 { |
no outgoing calls