mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Correct sortedness check in profile statistics
This commit is contained in:
parent
ced303b9cb
commit
1c0f569bb3
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ impl Profiler {
|
|||
/// Get tuple (mean, median, min, max) for profiler statistics.
|
||||
pub fn get_statistics(data: &[f64]) -> (f64, f64, f64, f64) {
|
||||
data.iter().fold(-f64::INFINITY, |a, &b| {
|
||||
debug_assert!(a < b, "Data must be sorted");
|
||||
debug_assert!(a <= b, "Data must be sorted");
|
||||
b
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue