Fix test logic and stabilise rounding direction

This commit is contained in:
Dean Herbert
2020-10-09 05:04:03 +09:00
parent a5b2c4195e
commit ff5a1937f5
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ namespace osu.Game.Screens.Ranking.Statistics
foreach (var e in hitEvents)
{
int binOffset = (int)Math.Round(e.TimeOffset / binSize);
int binOffset = (int)Math.Round(e.TimeOffset / binSize, MidpointRounding.AwayFromZero);
bins[timing_distribution_centre_bin_index + binOffset]++;
}