diff options
author | Pim van den Berg | 2012-08-10 17:54:59 +0200 |
---|---|---|
committer | Pim van den Berg | 2012-08-10 17:54:59 +0200 |
commit | 0d733e7e0584fb8511aa9a6cab9736110e13e7f2 (patch) | |
tree | d4fe5e1a3242e2b54c99f5937d356b9849104b03 /type/GenericIO.class.php | |
parent | plugin/tail: change to default graph type (diff) | |
download | apt-panopticon_cgp-0d733e7e0584fb8511aa9a6cab9736110e13e7f2.zip apt-panopticon_cgp-0d733e7e0584fb8511aa9a6cab9736110e13e7f2.tar.gz apt-panopticon_cgp-0d733e7e0584fb8511aa9a6cab9736110e13e7f2.tar.bz2 apt-panopticon_cgp-0d733e7e0584fb8511aa9a6cab9736110e13e7f2.tar.xz |
type/GenericIO: only use raw totals when no scale is set (update)
This is a correction to commit:
v0.3-56-g69bea69 [only use raw totals when no scale is set]
Diffstat (limited to 'type/GenericIO.class.php')
-rw-r--r-- | type/GenericIO.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/type/GenericIO.class.php b/type/GenericIO.class.php index 3a56fb3..3999ea6 100644 --- a/type/GenericIO.class.php +++ b/type/GenericIO.class.php | |||
@@ -17,7 +17,7 @@ class Type_GenericIO extends Type_Default { | |||
17 | $rrdgraph[] = sprintf('DEF:min_%s%s="%s":%s:MIN', crc32hex($sources[$i]), $raw, $this->rrd_escape($this->files[$tinstance]), $ds); | 17 | $rrdgraph[] = sprintf('DEF:min_%s%s="%s":%s:MIN', crc32hex($sources[$i]), $raw, $this->rrd_escape($this->files[$tinstance]), $ds); |
18 | $rrdgraph[] = sprintf('DEF:avg_%s%s="%s":%s:AVERAGE', crc32hex($sources[$i]), $raw, $this->rrd_escape($this->files[$tinstance]), $ds); | 18 | $rrdgraph[] = sprintf('DEF:avg_%s%s="%s":%s:AVERAGE', crc32hex($sources[$i]), $raw, $this->rrd_escape($this->files[$tinstance]), $ds); |
19 | $rrdgraph[] = sprintf('DEF:max_%s%s="%s":%s:MAX', crc32hex($sources[$i]), $raw, $this->rrd_escape($this->files[$tinstance]), $ds); | 19 | $rrdgraph[] = sprintf('DEF:max_%s%s="%s":%s:MAX', crc32hex($sources[$i]), $raw, $this->rrd_escape($this->files[$tinstance]), $ds); |
20 | if (!$raw) | 20 | if (!$this->scale) |
21 | $rrdgraph[] = sprintf('VDEF:tot_%s=avg_%1$s,TOTAL', crc32hex($sources[$i])); | 21 | $rrdgraph[] = sprintf('VDEF:tot_%s=avg_%1$s,TOTAL', crc32hex($sources[$i])); |
22 | $i++; | 22 | $i++; |
23 | } | 23 | } |