mirror of
https://github.com/ppy/osu
synced 2025-02-22 13:37:08 +00:00
Use floor instead of ceiling
This commit is contained in:
parent
c124034cf3
commit
333a305af3
@ -408,11 +408,11 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
if (difference.TotalMinutes < 1)
|
if (difference.TotalMinutes < 1)
|
||||||
return CommonStrings.TimeNow.ToString();
|
return CommonStrings.TimeNow.ToString();
|
||||||
if (difference.TotalHours < 1)
|
if (difference.TotalHours < 1)
|
||||||
return $@"{Math.Ceiling(difference.TotalMinutes)}min";
|
return $@"{Math.Floor(difference.TotalMinutes)}min";
|
||||||
if (difference.TotalDays < 1)
|
if (difference.TotalDays < 1)
|
||||||
return $@"{Math.Ceiling(difference.TotalHours)}h";
|
return $@"{Math.Floor(difference.TotalHours)}h";
|
||||||
if (difference.TotalDays < 7)
|
if (difference.TotalDays < 7)
|
||||||
return $@"{Math.Ceiling(difference.TotalDays)}d";
|
return $@"{Math.Floor(difference.TotalDays)}d";
|
||||||
|
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user