time()) { $rrd_options .= ' VDEF:islope=inbits_max,LSLSLOPE'; $rrd_options .= ' VDEF:icons=inbits_max,LSLINT'; $rrd_options .= ' CDEF:ilsl=inbits_max,POP,islope,COUNT,*,icons,+ '; $rrd_options .= " LINE2:ilsl#44aa55:'In Linear Prediction\\n':dashes=8"; $rrd_options .= ' VDEF:oslope=doutbits_max,LSLSLOPE'; $rrd_options .= ' VDEF:ocons=doutbits_max,LSLINT'; $rrd_options .= ' CDEF:olsl=doutbits_max,POP,oslope,COUNT,*,ocons,+ '; $rrd_options .= " LINE2:olsl#4400dd:'Out Linear Prediction\\n':dashes=8"; } if ($_GET['previous'] == 'yes') { $rrd_options .= " COMMENT:' \\n'"; $rrd_options .= ' LINE1.25:in' . $format . "X#333300:'Prev In '\t"; $rrd_options .= ' GPRINT:in' . $format . 'X:AVERAGE:%6.2lf%s'; $rrd_options .= ' GPRINT:in' . $format . '_maxX:MAX:%6.2lf%s'; $rrd_options .= " GPRINT:percentile_inX:%6.2lf%s\\n"; $rrd_options .= ' LINE1.25:dout' . $format . "X#000099:'Prev Out '\t"; $rrd_options .= ' GPRINT:out' . $format . 'X:AVERAGE:%6.2lf%s'; $rrd_options .= ' GPRINT:out' . $format . '_maxX:MAX:%6.2lf%s'; $rrd_options .= " GPRINT:percentile_outX:%6.2lf%s\\n"; $rrd_options .= " GPRINT:totX:'Total %6.2lf%sB'"; $rrd_options .= " GPRINT:totinX:'(In %6.2lf%sB'"; $rrd_options .= " GPRINT:totoutX:'Out %6.2lf%sB)\\l'"; $rrd_options .= ' LINE1:percentile_inX#00aaaa'; $rrd_options .= ' LINE1:dpercentile_outX#00aaaa'; } unset($stacked);