mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Add spacing between inline comments
This commit is contained in:
parent
82640418ba
commit
e36b1051c1
@ -125,6 +125,7 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
|
||||
continue;
|
||||
|
||||
float y;
|
||||
|
||||
// special-case the min == max case to match LineGraph.
|
||||
// lerp isn't really well-defined over a zero interval anyway.
|
||||
if (min == max)
|
||||
@ -218,6 +219,7 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
|
||||
// first off, use log10 to calculate the number of digits in the "exact" interval.
|
||||
var numberOfDigits = Math.Floor(Math.Log10(exactTickInterval));
|
||||
var tickBase = Math.Pow(10, numberOfDigits);
|
||||
|
||||
// then see how the exact tick relates to the power of 10.
|
||||
var exactTickMultiplier = exactTickInterval / tickBase;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user