From: Sebastien GODARD Date: Fri, 13 May 2016 12:56:36 +0000 (+0200) Subject: SVG: Differentiate graphs titles for temperature sensors X-Git-Tag: v11.3.4~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa2e1999da253c851f57ccabd10f75996c62f4cb;p=sysstat SVG: Differentiate graphs titles for temperature sensors Signed-off-by: Sebastien GODARD --- diff --git a/svg_stats.c b/svg_stats.c index 26ead52..96fa202 100644 --- a/svg_stats.c +++ b/svg_stats.c @@ -2514,7 +2514,8 @@ __print_funct_t svg_print_pwr_temp_stats(struct activity *a, int curr, int actio { struct stats_pwr_temp *spc; int group[] = {1}; - char *title[] = {"Device temperature"}; + char *title1[] = {"Device temperature (1)"}; + char *title2[] = {"Device temperature (2)"}; char *g1_title[] = {"~degC"}; char *g2_title[] = {"%temp"}; static double *spmin, *spmax; @@ -2575,11 +2576,11 @@ __print_funct_t svg_print_pwr_temp_stats(struct activity *a, int curr, int actio item_name[MAX_SENSORS_DEV_LEN + 7] = '\0'; draw_activity_graphs(1, SVG_LINE_GRAPH, - title, g1_title, item_name, group, + title1, g1_title, item_name, group, spmin + 2 * i, spmax + 2 * i, out + 2 * i, outsize + 2 * i, svg_p, record_hdr); draw_activity_graphs(1, SVG_BAR_GRAPH, - title, g2_title, item_name, group, + title2, g2_title, item_name, group, spmin + 2 * i + 1, spmax + 2 * i + 1, out + 2 * i + 1, outsize + 2 * i + 1, svg_p, record_hdr);