From 75034e5836980feda04c582b5787c6bf9960c2e9 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Tue, 23 Jun 2015 11:35:47 +0100 Subject: bootchart: fix per-cpu scales. Closes systemd/systemd#330 --- src/bootchart/svg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 0132475e10..f442200b66 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -69,7 +69,7 @@ static double esize = 0; static struct list_sample_data *sampledata; static struct list_sample_data *prev_sampledata; -static void svg_header(FILE *of, struct list_sample_data *head, double graph_start) { +static void svg_header(FILE *of, struct list_sample_data *head, double graph_start, int n_cpus) { double w; double h; struct list_sample_data *sampledata_last; @@ -90,7 +90,7 @@ static void svg_header(FILE *of, struct list_sample_data *head, double graph_sta /* height is variable based on pss, psize, ksize */ h = 400.0 + (arg_scale_y * 30.0) /* base graphs and title */ + (arg_pss ? (100.0 * arg_scale_y) + (arg_scale_y * 7.0) : 0.0) /* pss estimate */ - + psize + ksize + esize; + + psize + ksize + esize + (n_cpus * 15 * arg_scale_y); fprintf(of, "\n"); fprintf(of, "\n\n"); fprintf(of, "\n"); -- cgit v1.2.3-54-g00ecf