mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 04:33:21 +08:00
Fix potential off-by-one
This commit is contained in:
parent
ad3bc99e7c
commit
34a8fcfd2f
@ -58,7 +58,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
||||
return;
|
||||
|
||||
int[] bins = new int[total_timing_distribution_bins];
|
||||
double binSize = hitEvents.Max(e => Math.Abs(e.TimeOffset)) / timing_distribution_bins;
|
||||
double binSize = Math.Ceiling(hitEvents.Max(e => Math.Abs(e.TimeOffset)) / timing_distribution_bins);
|
||||
|
||||
foreach (var e in hitEvents)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user