displayed
In "packed" mode, we have to make sure that at least one graph for
current activity has been displayed before moving to next row.
Without this patch problem could happen with a command like:
$ sadf -g -O packed,skipempty -- -A > output.svg
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
}
if (displayed) {
printf("</g>\n");
- }
- /* For next row of views */
- (svg_p->graph_no) += PACK_VIEWS(flags) ? 1 : views_nr;
+ /* For next row of views */
+ (svg_p->graph_no) += PACK_VIEWS(flags) ? 1 : views_nr;
+ }
return displayed;
}