(value: u64, total: u64)
| 950 | } |
| 951 | |
| 952 | fn ratio(value: u64, total: u64) -> f64 { |
| 953 | if total == 0 { |
| 954 | 0.0 |
| 955 | } else { |
| 956 | value as f64 / total as f64 |
| 957 | } |
| 958 | } |
| 959 | |
| 960 | fn normalize_top(top: usize) -> usize { |
| 961 | top.clamp(1, MAX_TOP_LIMIT) |
no outgoing calls
no test coverage detected