summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/util.cc6
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);