diff options
author | bd <bdunahu@operationnull.com> | 2025-04-27 00:04:56 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-27 00:04:56 -0400 |
commit | af643762a1627b85f779ea9d864393f7d7035e6a (patch) | |
tree | 1c19ec681edba9196e9fe04ee6b7a46602315e62 | |
parent | b6a4bcd0b9ea23d4c760127e77112aaaa30cef0d (diff) |
Adjust cache size generation algorithm
-rw-r--r-- | gui/util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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); |