From: Michael Tremer Date: Tue, 11 Nov 2025 20:32:44 +0000 (+0000) Subject: legacy-gateway-latency4: Show the average across the graph X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=978e8f5bd49f9c35c09fa4b82dcc608452394432;p=collecty.git legacy-gateway-latency4: Show the average across the graph Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graphs/legacy-gateway-latency4.c b/src/daemon/graphs/legacy-gateway-latency4.c index 2ea9684..f7d66c3 100644 --- a/src/daemon/graphs/legacy-gateway-latency4.c +++ b/src/daemon/graphs/legacy-gateway-latency4.c @@ -40,6 +40,10 @@ static int legacy_gateway_latency4_render(td_ctx* ctx, td_graph* graph, // Header PRINT_HEADER4(args, _("Current"), _("Average"), _("Minimum"), _("Maximum")); + // Draw a horizontal line of the average + DRAW_LINE(args, 1, FIELD_AVERAGE("latency"), NULL, + COLOR_WITH_ALPHA(COLOR_LATENCY, COLOR_OPACITY_25P), DASHED); + // Draw the stddev area DRAW_STDDEV(args, "latency", "stddev", NULL, COLOR_LATENCY);