[systemd-devel] [PATCH] Bring bootchart code in line with CODING_STYLE

Dan McGee dan at archlinux.org
Sun Dec 8 09:27:06 PST 2013


Use double and not float, as there is little to no benefit.
---
 src/bootchart/svg.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c
index c21f6e8..0f4fd63 100644
--- a/src/bootchart/svg.c
+++ b/src/bootchart/svg.c
@@ -68,16 +68,16 @@ 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;
 
         sampledata = head;
-- 
1.8.5.1



More information about the systemd-devel mailing list