]> git.ipfire.org Git - telemetry.git/commitdiff
graphs: Always show the top of the memory graph
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 19 Oct 2025 13:03:05 +0000 (13:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 19 Oct 2025 13:03:05 +0000 (13:03 +0000)
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 <michael.tremer@ipfire.org>
src/daemon/graphs/memory.c

index 28c38d2de0e9d19f24ce8af7905ceee45b9b992c..22e19cac2781a6e0d270ab8457cd2a44d37f8bba 100644 (file)
@@ -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);