diff options
author | Daniel Mack <github@zonque.org> | 2015-06-29 05:03:38 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-06-29 05:03:38 +0200 |
commit | eeec69e0e01a87379c0a09c925b22900d0ef2d3c (patch) | |
tree | fbfa465b1ae05ff6299793b772bfb2615cfe505e /src | |
parent | e88113bd442a76524b529d558be7acefba394678 (diff) | |
parent | ae87a4a9291e7277b9fe08c97345166118f98623 (diff) |
Merge pull request #399 from gmacario/fix-issue341-v2
bootchart: reset list_sample_data head before generating SVG
Diffstat (limited to 'src')
-rw-r--r-- | src/bootchart/svg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index f442200b66..0ac1f55a91 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -76,8 +76,6 @@ static void svg_header(FILE *of, struct list_sample_data *head, double graph_sta assert(head); - sampledata = head; - LIST_FIND_TAIL(link, sampledata, head); sampledata_last = head; LIST_FOREACH_BEFORE(link, sampledata, head) { sampledata_last = sampledata; @@ -1296,6 +1294,8 @@ int svg_do(FILE *of, double offset = 7; int r, c; + sampledata = head; + LIST_FIND_TAIL(link, sampledata, head); ps = ps_first; /* count initcall thread count first */ |