From: Michael Tremer Date: Sun, 19 Oct 2025 13:03:05 +0000 (+0000) Subject: graphs: Always show the top of the memory graph X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cce810836acb89f0f2f5a3153ecc5aab1e6be277;p=telemetry.git graphs: Always show the top of the memory graph I am not sure whether this is what I actually want but some members on the team think that it should be this way. So I will commit this for now and maybe later revert it again. Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graphs/memory.c b/src/daemon/graphs/memory.c index 28c38d2..22e19ca 100644 --- a/src/daemon/graphs/memory.c +++ b/src/daemon/graphs/memory.c @@ -65,7 +65,7 @@ static int memory_render(collecty_ctx* ctx, // Draw the stacked background first DRAW_AREA_BACKGROUND(args, "mem_used", COLOR_MEM_USED); DRAW_AREA_BACKGROUND(args, "buffers", COLOR_BUFFERS, STACK); - DRAW_AREA_BACKGROUND(args, "cached", COLOR_CACHED, STACK SKIPSCALE); + DRAW_AREA_BACKGROUND(args, "cached", COLOR_CACHED, STACK); // Draw the area outlines afterwards DRAW_AREA_OUTLINE_WITH_LABEL(args, "mem_used", COLOR_MEM_USED, _("Used Memory")); @@ -93,7 +93,7 @@ static int memory_render(collecty_ctx* ctx, PRINT_LARGE_FLOAT(args, FIELD_MAXIMUM("cached"), EOL); // Draw the total memory as a line - DRAW_LINE1(args, "mem_total", COLOR_MEM_TOTAL, SKIPSCALE); + DRAW_LINE1(args, "mem_total", COLOR_MEM_TOTAL); // Make some space for swap PRINT_EMPTY_LINE(args); @@ -110,7 +110,7 @@ static int memory_render(collecty_ctx* ctx, PRINT_PERCENTAGE(args, FIELD_MINIMUM(FIELD_PERCENT("swap_used"))); PRINT_PERCENTAGE(args, FIELD_MAXIMUM(FIELD_PERCENT("swap_used")), EOL); - DRAW_LINE1_WITH_LABEL(args, "swap_total", COLOR_SWAP_TOTAL, _("Total Swap"), DASHES SKIPSCALE); + DRAW_LINE1_WITH_LABEL(args, "swap_total", COLOR_SWAP_TOTAL, _("Total Swap"), DASHES); PRINT_LARGE_FLOAT(args, FIELD_CURRENT("swap_used")); PRINT_NOTHING(args); PRINT_NOTHING(args);