Skip to content

Commit

Permalink
type/GenericStacked: make stack NaN-safe using ADDNAN instead of +
Browse files Browse the repository at this point in the history
Reported-By: Julien Genestoux <julien.genestoux@gmail.com>
             (#24)
  • Loading branch information
pommi committed Oct 7, 2013
1 parent e7dcbd9 commit fc533de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion type/GenericStacked.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function rrd_gen_graph() {
if ($i == (count($sources)-1))
$rrdgraph[] = sprintf('CDEF:area_%s=avg_%1$s', crc32hex($sources[$i]));
else
$rrdgraph[] = sprintf('CDEF:area_%s=area_%s,avg_%1$s,+', crc32hex($sources[$i]), crc32hex($sources[$i+1]));
$rrdgraph[] = sprintf('CDEF:area_%s=area_%s,avg_%1$s,ADDNAN', crc32hex($sources[$i]), crc32hex($sources[$i+1]));
}

$c = 0;
Expand Down

0 comments on commit fc533de

Please sign in to comment.