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

index e7b494d9dd69910567215e6f4ce3ce47debbb606..698a0b1818b2f4e93dfd8e4719f9685363200928 100644 (file)
@@ -203,6 +203,11 @@ int collecty_graph_render(collecty_graph* self,
        if (r < 0)
                goto ERROR;
 
+       // Write the graph to the output stream
+       r = collecty_args_push(args, "-");
+       if (r < 0)
+               goto ERROR;
+
        // Call the implementation to add some arguments
        r = self->impl->render(self->ctx, self, args, object);
        if (r < 0)