Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
goto ERROR;
}
+ // Pass the start time
+ if (options->interval.t_start) {
+ r = td_args_push(args, "--start=%ld", options->interval.t_start);
+ if (r < 0)
+ goto ERROR;
+ }
+
+ // Pass the end time
+ if (options->interval.t_end) {
+ r = td_args_push(args, "--end=%ld", options->interval.t_end);
+ if (r < 0)
+ goto ERROR;
+ }
+
// Set the title
if (self->impl->title) {
// Fetch the title
unsigned int h;
unsigned int w;
} dimensions;
+
+ // Interval
+ struct {
+ time_t t_start;
+ time_t t_end;
+ } interval;
} td_graph_render_options;
int td_graph_render(td_graph* self, const char* object,