From: Sebastien GODARD Date: Sat, 7 May 2016 13:37:24 +0000 (+0200) Subject: SVG: Fix graph's min and max values test X-Git-Tag: v11.3.4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a15e37331432b780b896b97410bce59eec9a796b;p=sysstat SVG: Fix graph's min and max values test sadf should check for a min and a max value for the first graph of each view. Signed-off-by: Sebastien GODARD --- diff --git a/svg_stats.c b/svg_stats.c index dd86344..26ead52 100644 --- a/svg_stats.c +++ b/svg_stats.c @@ -683,7 +683,7 @@ void draw_activity_graphs(int g_nr, int g_type, char *title[], char *g_title[], * And a min and max value should have been found. */ if ((record_hdr->ust_time == svg_p->record_hdr->ust_time) || - (*(spmin + i) == DBL_MAX) || (*(spmax + i) == -DBL_MIN)) { + (*(spmin + pos) == DBL_MAX) || (*(spmax + pos) == -DBL_MIN)) { /* No data found */ printf("No data\n", SVG_M_YSIZE + i * SVG_T_YSIZE);