From: Michael Tremer Date: Tue, 11 Nov 2025 20:28:11 +0000 (+0000) Subject: colors: Introduce a new color for latency X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bb67f4d9a405ae3c8b8b1767fe73f4934573969;p=telemetry.git colors: Introduce a new color for latency Signed-off-by: Michael Tremer --- diff --git a/src/daemon/colors.h b/src/daemon/colors.h index e397a80..fbbdba4 100644 --- a/src/daemon/colors.h +++ b/src/daemon/colors.h @@ -77,6 +77,9 @@ #define COLOR_CACHE_HIT COLOR_GREEN #define COLOR_CACHE_MISS COLOR_RED +// Latency +#define COLOR_LATENCY COLOR_LIGHT_BLUE + // Temperature #define COLOR_TEMPERATURE COLOR_RED diff --git a/src/daemon/graphs/legacy-gateway-latency4.c b/src/daemon/graphs/legacy-gateway-latency4.c index 66acab9..2ea9684 100644 --- a/src/daemon/graphs/legacy-gateway-latency4.c +++ b/src/daemon/graphs/legacy-gateway-latency4.c @@ -41,10 +41,10 @@ static int legacy_gateway_latency4_render(td_ctx* ctx, td_graph* graph, PRINT_HEADER4(args, _("Current"), _("Average"), _("Minimum"), _("Maximum")); // Draw the stddev area - DRAW_STDDEV(args, "latency", "stddev", NULL, COLOR_DEFAULT); + DRAW_STDDEV(args, "latency", "stddev", NULL, COLOR_LATENCY); // Draw the measured latency - DRAW_LINE_WITH_LABEL(args, 1, "latency", NULL, COLOR_DEFAULT, 0, _("Latency")); + DRAW_LINE_WITH_LABEL(args, 1, "latency", NULL, COLOR_LATENCY, 0, _("Latency")); PRINT_CAMM(args, "latency", NULL, SECONDS_HIGHRES); PRINT_EMPTY_LINE(args);