]> git.ipfire.org Git - people/ms/telemetry.git/commitdiff
graphs: memory: Don't zoom out
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Dec 2025 17:01:34 +0000 (17:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Dec 2025 17:01:34 +0000 (17:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/graphs/memory.c

index ea32b0e63032139d65836a478cced8f404c6d125..0697cf8a7cdb1c880b9ebd9742a5c7fda26b9a19 100644 (file)
@@ -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);