X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbootchart%2Fsvg.c;h=faf377e506e942f729a2b174c72c709bb9923710;hp=859cf81c220027ff72822651965fba100071e629;hb=ed6d629a3487105e31415db9e175dd698ac20125;hpb=8dfb6e718d621a5115bd3b8e7e826195dc6bfe14 diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 859cf81c2..faf377e50 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -3,7 +3,7 @@ /*** This file is part of systemd. - Copyright (C) 2009-2013 Intel Coproration + Copyright (C) 2009-2013 Intel Corporation Authors: Auke Kok @@ -68,20 +68,22 @@ 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(struct list_sample_data, link, sampledata, head); + LIST_FIND_TAIL(link, sampledata, head); sampledata_last = head; LIST_FOREACH_BEFORE(link, sampledata, head) { sampledata_last = sampledata; @@ -123,6 +125,7 @@ static void svg_header(void) { svg("\n