sadf should check for a min and a max value for the first graph of each
view.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
* 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("<text x=\"0\" y=\"%d\" style=\"fill: red; stroke: none\">No data</text>\n",
SVG_M_YSIZE + i * SVG_T_YSIZE);