From a111eca3929fc68c4a21b552eb92c0d99cfe98c4 Mon Sep 17 00:00:00 2001 From: tsunyoku Date: Wed, 24 Apr 2024 12:33:24 +0100 Subject: [PATCH] change size to bytes --- .../Stores/BeatmapStore.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;