]> granicus.if.org Git - sysstat/commit
SVG: Properly terminate SVG file when no data have been found
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 5 Feb 2017 09:52:09 +0000 (10:52 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 5 Feb 2017 09:52:09 +0000 (10:52 +0100)
commit1cf1a62f5177284603255e24e11bfdf1c64fae00
treebb95cda3accf60f3c8b87a1115aee793bb6ecb00
parentfabf134eb70af67cc9bd2204a622c8d54a43c5c9
SVG: Properly terminate SVG file when no data have been found

When a data file contains only a Linux Restart message with no
statistics, trying to create SVG graphs with sadf -g resulted in an
error ("XML Parsing Error: no element found").
This patch fixes that and display "No data!" instead.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf.c
sadf_misc.c