X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbootchart%2Fsvg.c;h=135883fb838c813a932ff7fe5cf96fdbfd48f2f3;hb=4d8ddba9d71e51356cc9488f906b8fef89c60c23;hp=c21f6e86b425899f77fb762d37554901646bd17a;hpb=f168c27313e4d7b0aabee037dc9c78a5799f0597;p=elogind.git diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index c21f6e86b..135883fb8 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -68,18 +68,20 @@ static double idletime = -1.0; static int pfiltered = 0; static int pcount = 0; static int kcount = 0; -static float psize = 0; -static float ksize = 0; -static float esize = 0; +static double psize = 0; +static double ksize = 0; +static double esize = 0; static struct list_sample_data *sampledata; static struct list_sample_data *prev_sampledata; extern struct list_sample_data *head; static void svg_header(void) { - float w; - float h; + double w; + double h; struct list_sample_data *sampledata_last; + assert(head); + sampledata = head; LIST_FIND_TAIL(link, sampledata, head); sampledata_last = head; @@ -123,6 +125,7 @@ static void svg_header(void) { svg("\n