RRD Float Precision Customization (#11853)

This commit is contained in:
SourceDoctor
2020-06-25 21:51:55 +02:00
committed by GitHub
parent bd45ae0b65
commit ed70b2636a
14 changed files with 134 additions and 130 deletions

View File

@@ -60,7 +60,7 @@ foreach ($rrd_list as $rrd) {
$seperatorX = ',';
$plusX = ',+';
}
if ($printtotal === 1) {
$rrd_options .= ' VDEF:tot'.$rrd['ds'].$i.'='.$rrd['ds'].$i.',TOTAL';
}
@@ -87,7 +87,7 @@ foreach ($rrd_list as $rrd) {
if ($i && ($dostack === 1)) {
$stack = ':STACK';
}
$rrd_options .= ' LINE2:'.$g_defname.$i.'#'.$colour.":'".$descr."'$stack";
$rrd_options .= ' GPRINT:'.$t_defname.$i.':LAST:%8.0lf%s GPRINT:'.$t_defname.$i.'min:MIN:%8.0lf%s';
$rrd_options .= ' GPRINT:'.$t_defname.$i.'max:MAX:%8.0lf%s GPRINT:'.$t_defname.$i.":AVERAGE:'%8.0lf%s\\n'";