From f6154cdbf500f5cf9447f25a2497bf6b2ba49f3e Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 5 Jul 2014 13:31:19 +0200 Subject: type/genericio: apply percentile on scaled value --- type/GenericIO.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'type') diff --git a/type/GenericIO.class.php b/type/GenericIO.class.php index a9d58cd..cab5220 100644 --- a/type/GenericIO.class.php +++ b/type/GenericIO.class.php @@ -34,7 +34,7 @@ class Type_GenericIO extends Type_Base { $rrdgraph[] = sprintf('CDEF:avg_%s_neg=avg_%1$s_raw,%s%s,*', crc32hex($sources[$i]), $this->negative_io ? '-' : '', $this->scale); $rrdgraph[] = sprintf('VDEF:tot_%1$s=avg_%1$s,TOTAL', crc32hex($sources[$i])); if ($this->percentile) - $rrdgraph[] = sprintf('VDEF:pct_%1$s=avg_%1$s_raw,%2$s,PERCENT', crc32hex($sources[$i]), $this->percentile); + $rrdgraph[] = sprintf('VDEF:pct_%1$s=avg_%1$s,%2$s,PERCENT', crc32hex($sources[$i]), $this->percentile); $i++; } } -- cgit v1.1