Merge pull request #4010 from murrant/generic-v3-graph

generic_v3_multiline: extra colon breaks the graph
This commit is contained in:
Neil Lathwood
2016-08-09 22:18:52 +01:00
committed by GitHub

View File

@ -89,11 +89,10 @@ foreach ($rrd_list as $rrd) {
if ($i && ($dostack === 1)) {
$stack = ':STACK';
}
$rrd_options .= ' LINE2:'.$g_defname.$i.'#'.$colour.":'".$descr."'$stack";
if ($addarea === 1)
{
$descr = ":";
$rrd_options .= ' AREA:'.$g_defname.$i.'#'.$colour.$transparency.":'".$descr."'$stack";
}
$rrd_options .= ' GPRINT:'.$t_defname.$i.':LAST:%8.0lf%s GPRINT:'.$t_defname.$i.'min:MIN:%8.0lf%s';