From: Michael Tremer Date: Thu, 4 Dec 2025 17:01:34 +0000 (+0000) Subject: graphs: memory: Don't zoom out X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce97ada1f322cb11b1a55b7dfefbf49cb399305d;p=people%2Fms%2Ftelemetry.git graphs: memory: Don't zoom out Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graphs/memory.c b/src/daemon/graphs/memory.c index ea32b0e..0697cf8 100644 --- a/src/daemon/graphs/memory.c +++ b/src/daemon/graphs/memory.c @@ -73,7 +73,7 @@ static int memory_render(td_ctx* ctx, td_graph* graph, PRINT_CAMM(args, "cached", NULL, LARGE_FLOAT); // Draw the total memory as a line - DRAW_LINE(args, 1, "mem_total", NULL, COLOR_MEM_TOTAL, 0); + DRAW_LINE(args, 1, "mem_total", NULL, COLOR_MEM_TOTAL, SKIPSCALE); // Make some space for swap PRINT_EMPTY_LINE(args); @@ -84,7 +84,8 @@ static int memory_render(td_ctx* ctx, td_graph* graph, PRINT_EMPTY_LABEL(args); PRINT_CAMM(args, "swap_used", NULL, PERCENTAGE); - DRAW_LINE_WITH_LABEL(args, 1, "swap_total", NULL, COLOR_SWAP_TOTAL, DASHED, _("Total Swap")); + DRAW_LINE_WITH_LABEL(args, 1, "swap_total", NULL, + COLOR_SWAP_TOTAL, DASHED | SKIPSCALE, _("Total Swap")); PRINT(args, FIELD_CURRENT("swap_used"), NULL, LARGE_FLOAT); PRINT_NOTHING(args); PRINT_NOTHING(args);