1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

Merge branch 'master' into tournament-ladder-parsing

This commit is contained in:
Bartłomiej Dach 2021-10-25 20:06:01 +02:00
commit 0fe62bb899
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -54,7 +54,7 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty(@"accuracy")]
private float overallDifficulty { get; set; }
public double Length => lengthInSeconds * 1000;
public double Length => TimeSpan.FromSeconds(lengthInSeconds).TotalMilliseconds;
[JsonProperty(@"total_length")]
private double lengthInSeconds { get; set; }
@ -86,7 +86,7 @@ namespace osu.Game.Online.API.Requests.Responses
OnlineBeatmapID = OnlineID,
Version = DifficultyName,
// this is actually an incorrect mapping (Length is calculated as drain length in lazer's import process, see BeatmapManager.calculateLength).
Length = TimeSpan.FromSeconds(Length).TotalMilliseconds,
Length = Length,
Status = Status,
MD5Hash = Checksum,
BeatmapSet = set,