]> git.ipfire.org Git - collecty.git/commitdiff
graph: Log the size of the generated output
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Oct 2025 10:51:23 +0000 (10:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Oct 2025 10:51:23 +0000 (10:51 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/graph.c

index 698a0b1818b2f4e93dfd8e4719f9685363200928..ab4eea6008349ba1e89eea243f719000aebe5bb2 100644 (file)
@@ -230,6 +230,7 @@ int collecty_graph_render(collecty_graph* self,
 
        // Log action
        DEBUG(self->ctx, "Rendered graph %s:\n", collecty_graph_get_name(self));
+       DEBUG(self->ctx, "    size     : %d byte(s)\n", ftell(f));
        DEBUG(self->ctx, "    width    : %d\n", w);
        DEBUG(self->ctx, "    height   : %d\n", h);
        DEBUG(self->ctx, "    ymin     : %.2f\n", ymin);