From a9db5f2e54653038571a2e921a02705ed10be02d Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sat, 23 Dec 2017 17:47:19 +0100 Subject: [PATCH] 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 --- svg_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("