diff options
| author | Pim van den Berg | 2013-10-07 21:22:09 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2013-10-07 21:24:40 +0200 |
| commit | fc533de432480560def92143d03ada40957de2ef (patch) | |
| tree | 3a5bf6bcf7f0f84ef2b19b2fdc962b14b80661b5 | |
| parent | rrd.php: ob_clean if ob_get_length to prevent from a php notice (diff) | |
| download | apt-panopticon_cgp-fc533de432480560def92143d03ada40957de2ef.zip apt-panopticon_cgp-fc533de432480560def92143d03ada40957de2ef.tar.gz apt-panopticon_cgp-fc533de432480560def92143d03ada40957de2ef.tar.bz2 apt-panopticon_cgp-fc533de432480560def92143d03ada40957de2ef.tar.xz | |
type/GenericStacked: make stack NaN-safe using ADDNAN instead of +
Reported-By: Julien Genestoux <julien.genestoux@gmail.com>
(https://github.com/pommi/CGP/issues/24)
| -rw-r--r-- | type/GenericStacked.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/type/GenericStacked.class.php b/type/GenericStacked.class.php index 5d1a556..fd6abc7 100644 --- a/type/GenericStacked.class.php +++ b/type/GenericStacked.class.php | |||
| @@ -37,7 +37,7 @@ class Type_GenericStacked extends Type_Default { | |||
| 37 | if ($i == (count($sources)-1)) | 37 | if ($i == (count($sources)-1)) |
| 38 | $rrdgraph[] = sprintf('CDEF:area_%s=avg_%1$s', crc32hex($sources[$i])); | 38 | $rrdgraph[] = sprintf('CDEF:area_%s=avg_%1$s', crc32hex($sources[$i])); |
| 39 | else | 39 | else |
| 40 | $rrdgraph[] = sprintf('CDEF:area_%s=area_%s,avg_%1$s,+', crc32hex($sources[$i]), crc32hex($sources[$i+1])); | 40 | $rrdgraph[] = sprintf('CDEF:area_%s=area_%s,avg_%1$s,ADDNAN', crc32hex($sources[$i]), crc32hex($sources[$i+1])); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | $c = 0; | 43 | $c = 0; |
