From: Michael Tremer Date: Wed, 29 Oct 2025 16:24:54 +0000 (+0000) Subject: graphs: Fix rendering time calculation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f1026893b93757baa84a3ea2dd772221f3c35e2;p=telemetry.git graphs: Fix rendering time calculation Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graph.c b/src/daemon/graph.c index ecaad1f..8d1d3cd 100644 --- a/src/daemon/graph.c +++ b/src/daemon/graph.c @@ -394,7 +394,7 @@ int td_graph_render(td_graph* self, const char* object, // Log action DEBUG(self->ctx, "Rendered graph %s in %.2fms:\n", td_graph_get_name(self), - USEC_TO_MSEC((double)(t_end - t_start) / CLOCKS_PER_SEC)); + USEC_TO_MSEC((double)(t_end - t_start / CLOCKS_PER_SEC))); DEBUG(self->ctx, " size : %d byte(s)\n", ftell(f)); DEBUG(self->ctx, " width : %d\n", w); DEBUG(self->ctx, " height : %d\n", h);