1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-07 23:03:21 +08:00

fix issue

This commit is contained in:
Shin Morisawa 2024-11-14 16:29:03 +09:00
parent 53fcb494ff
commit 64e7e44f28
No known key found for this signature in database
GPG Key ID: 62E23861D492B078

View File

@ -147,9 +147,7 @@ namespace osu.Game.Beatmaps.Drawables
overallDifficulty.Text = @" OD: " + adjustedDifficulty.OverallDifficulty.ToString(@"0.##");
TimeSpan lengthTimeSpan = TimeSpan.FromMilliseconds(displayedContent.BeatmapInfo.Length / rate);
length.Text = "Length: " + (lengthTimeSpan.Hours > 0
? lengthTimeSpan.ToString(@"hh\:mm\:ss")
: lengthTimeSpan.ToString(@"mm\:ss"));
length.Text = "Length: " + (lengthTimeSpan.TotalHours >= 1 ? lengthTimeSpan.ToString(@"hh\:mm\:ss") : lengthTimeSpan.ToString(@"mm\:ss"));
bpm.Text = " BPM: " + Math.Round(bpmAdjusted, 0);
}