(count int, durationMs float64)
| 635 | } |
| 636 | |
| 637 | func counterRate(count int, durationMs float64) float64 { |
| 638 | if count <= 0 || durationMs <= 0 { |
| 639 | return 0 |
| 640 | } |
| 641 | return float64(count) / (durationMs / 1000) |
| 642 | } |
| 643 | |
| 644 | func boolRate(ok bool) float64 { |
| 645 | if ok { |