Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stopwatch: Fix qsort comparison function.
Current version is broken because it converts first argument to integer and after that substracts the duoble value. At the end the result converted to integer again. This does not cause unit test failures because qsort on linux accidentially makes right order. On FreeBSD this leads to the test failure: TEST '10-intervals-linear-growth' Assertion \ '|(&stats)->pctl_95 - (&d->expected_stats)->pctl_95| < 1e-1' failed: |9 - 10| < 0.1 CC: Mark Michelson <mmichels@redhat.com> Acked-by: Mark Michelson <mmichels@redhat.com> Fixes: aed45be ("Add stopwatch timing API") Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
- Loading branch information