]> granicus.if.org Git - sysstat/commitdiff
SVG: Differentiate graphs titles for temperature sensors
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 13 May 2016 12:56:36 +0000 (14:56 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 13 May 2016 12:56:36 +0000 (14:56 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
svg_stats.c

index 26ead526ec0ec4655aa935c6fac282f0f28f87b1..96fa202c8568d011be4c9221812f79af96c01017 100644 (file)
@@ -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);