diff --git a/osu.Server.Queues.ScoreStatisticsProcessor/Stores/BeatmapStore.cs b/osu.Server.Queues.ScoreStatisticsProcessor/Stores/BeatmapStore.cs index 428afe50..1ef04976 100644 --- a/osu.Server.Queues.ScoreStatisticsProcessor/Stores/BeatmapStore.cs +++ b/osu.Server.Queues.ScoreStatisticsProcessor/Stores/BeatmapStore.cs @@ -29,18 +29,18 @@ public class BeatmapStore { private static readonly bool use_realtime_difficulty_calculation = Environment.GetEnvironmentVariable("REALTIME_DIFFICULTY") != "0"; private static readonly string beatmap_download_path = Environment.GetEnvironmentVariable("BEATMAP_DOWNLOAD_PATH") ?? "https://osu.ppy.sh/osu/{0}"; - private static readonly uint memory_cache_size_limit = uint.Parse(Environment.GetEnvironmentVariable("MEMORY_CACHE_SIZE_LIMIT") ?? "100"); + private static readonly uint memory_cache_size_limit = uint.Parse(Environment.GetEnvironmentVariable("MEMORY_CACHE_SIZE_LIMIT") ?? "1000000"); private static readonly TimeSpan memory_cache_sliding_expiration = TimeSpan.FromSeconds(uint.Parse(Environment.GetEnvironmentVariable("MEMORY_CACHE_SLIDING_EXPIRATION_SECONDS") ?? "3600")); /// - /// The size of a in megabytes. Used for tracking memory usage. + /// The size of a in bytes. Used for tracking memory usage. /// - private const int beatmap_difficulty_attribute_size = 24 / 1024 / 1024; + private const int beatmap_difficulty_attribute_size = 24; /// - /// The size of a in megabytes. Used for tracking memory usage. + /// The size of a in bytes. Used for tracking memory usage. /// - private const int beatmap_size = 72 / 1024 / 1024; + private const int beatmap_size = 72; private readonly MemoryCache attributeMemoryCache; private readonly MemoryCache beatmapMemoryCache;