From 0d733e7e0584fb8511aa9a6cab9736110e13e7f2 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 10 Aug 2012 17:54:59 +0200 Subject: 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] --- type/GenericIO.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'type/GenericIO.class.php') 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 { $rrdgraph[] = sprintf('DEF:min_%s%s="%s":%s:MIN', crc32hex($sources[$i]), $raw, $this->rrd_escape($this->files[$tinstance]), $ds); $rrdgraph[] = sprintf('DEF:avg_%s%s="%s":%s:AVERAGE', crc32hex($sources[$i]), $raw, $this->rrd_escape($this->files[$tinstance]), $ds); $rrdgraph[] = sprintf('DEF:max_%s%s="%s":%s:MAX', crc32hex($sources[$i]), $raw, $this->rrd_escape($this->files[$tinstance]), $ds); - if (!$raw) + if (!$this->scale) $rrdgraph[] = sprintf('VDEF:tot_%s=avg_%1$s,TOTAL', crc32hex($sources[$i])); $i++; } -- cgit v1.1