]> git.ipfire.org Git - oddments/collecty.git/commitdiff
graphs: Fix rendering time calculation
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Oct 2025 16:24:54 +0000 (16:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Oct 2025 16:24:54 +0000 (16:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/graph.c

index ecaad1f91f6f287bdc619d17e2dcef9f224a535b..8d1d3cd22d07c08fdf168687db5f7cff7d19633f 100644 (file)
@@ -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);