From: Sebastien GODARD Date: Sat, 23 Dec 2017 16:47:19 +0000 (+0100) Subject: SVG: Display time as xx:00 instead of xxH when oneday option used X-Git-Tag: v11.7.1~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9db5f2e54653038571a2e921a02705ed10be02d;p=sysstat SVG: Display time as xx:00 instead of xxH when oneday option used Timestamps were displayed as 0H 2H ... 22H for graphs created with a command like "sadf -g -O oneday...". They are now displayed as 0:00 2:00 ... 22:00 Signed-off-by: Sebastien GODARD --- diff --git a/svg_stats.c b/svg_stats.c index 96f3d1d..b950662 100644 --- a/svg_stats.c +++ b/svg_stats.c @@ -686,8 +686,8 @@ void display_vgrid(long int xpos, double xfactor, int v_gridnr, struct svg_parm */ if (DISPLAY_ONE_DAY(flags) && (rectime.tm_min == 0)) { printf("%2dH\n", - (long) (xpos * j * xfactor) - 8, rectime.tm_hour); + "text-anchor: start\">%2d:00\n", + (long) (xpos * j * xfactor) - 15, rectime.tm_hour); } else { printf("