1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 22:20:53 +08:00

Fix SongProgressInfo timespan formatting

This commit is contained in:
FreezyLemon
2018-06-02 11:25:49 +02:00
Unverified
parent 53b11155d1
commit a0c643fae5
+1 -1
View File
@@ -92,6 +92,6 @@ namespace osu.Game.Screens.Play
}
}
private string formatTime(TimeSpan timeSpan) => $"{(timeSpan < TimeSpan.Zero ? "-" : "")}{timeSpan.Duration().TotalMinutes:N0}:{timeSpan.Duration().Seconds:D2}";
private string formatTime(TimeSpan timeSpan) => $"{(timeSpan < TimeSpan.Zero ? "-" : "")}{Math.Floor(timeSpan.Duration().TotalMinutes)}:{timeSpan.Duration().Seconds:D2}";
}
}