mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
Merge pull request #399 from gmacario/fix-issue341-v2
bootchart: reset list_sample_data head before generating SVG
This commit is contained in:
commit
eeec69e0e0
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user