From af643762a1627b85f779ea9d864393f7d7035e6a Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 27 Apr 2025 00:04:56 -0400 Subject: Adjust cache size generation algorithm --- gui/util.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui/util.cc') diff --git a/gui/util.cc b/gui/util.cc index f3486fb..b62ed81 100644 --- a/gui/util.cc +++ b/gui/util.cc @@ -5,11 +5,11 @@ int cache_size_mapper(int total_levels, int level) { const int y_min = 4; - const int y_max = MEM_LINE_SPEC - 2; + const int y_max = MEM_LINE_SPEC - 4; double f, r; - if (total_levels <= 1) - return 8; + if (total_levels <= 0) + return 7; f = level / (double)total_levels; r = y_min + f * (y_max - y_min); -- cgit v1.2.3