From ea473428e84f7adf43f1727eb15281df25b01901 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 22 Oct 2021 15:54:40 +0900 Subject: [PATCH] Fix incorrect length mapping in `APIBeatmap` --- osu.Game/Online/API/Requests/Responses/APIBeatmap.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osu.Game/Online/API/Requests/Responses/APIBeatmap.cs b/osu.Game/Online/API/Requests/Responses/APIBeatmap.cs index 42e519223b..6ab1630604 100644 --- a/osu.Game/Online/API/Requests/Responses/APIBeatmap.cs +++ b/osu.Game/Online/API/Requests/Responses/APIBeatmap.cs @@ -51,8 +51,10 @@ namespace osu.Game.Online.API.Requests.Responses [JsonProperty(@"accuracy")] private float overallDifficulty { get; set; } + public double Length => lengthInSeconds * 1000; + [JsonProperty(@"total_length")] - public double Length { get; set; } + private double lengthInSeconds { get; set; } [JsonProperty(@"count_circles")] private int circleCount { get; set; }