diff options
author | Pim van den Berg | 2014-07-05 13:31:19 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-07-05 13:31:19 +0200 |
commit | f6154cdbf500f5cf9447f25a2497bf6b2ba49f3e (patch) | |
tree | 76d5ddbdaf54d4d6c77521e82f6e7ea8e82048b2 /type | |
parent | Escape HTML in GET-provided hostname (diff) | |
download | apt-panopticon_cgp-f6154cdbf500f5cf9447f25a2497bf6b2ba49f3e.zip apt-panopticon_cgp-f6154cdbf500f5cf9447f25a2497bf6b2ba49f3e.tar.gz apt-panopticon_cgp-f6154cdbf500f5cf9447f25a2497bf6b2ba49f3e.tar.bz2 apt-panopticon_cgp-f6154cdbf500f5cf9447f25a2497bf6b2ba49f3e.tar.xz |
type/genericio: apply percentile on scaled value
Diffstat (limited to 'type')
-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 a9d58cd..cab5220 100644 --- a/type/GenericIO.class.php +++ b/type/GenericIO.class.php | |||
@@ -34,7 +34,7 @@ class Type_GenericIO extends Type_Base { | |||
34 | $rrdgraph[] = sprintf('CDEF:avg_%s_neg=avg_%1$s_raw,%s%s,*', crc32hex($sources[$i]), $this->negative_io ? '-' : '', $this->scale); | 34 | $rrdgraph[] = sprintf('CDEF:avg_%s_neg=avg_%1$s_raw,%s%s,*', crc32hex($sources[$i]), $this->negative_io ? '-' : '', $this->scale); |
35 | $rrdgraph[] = sprintf('VDEF:tot_%1$s=avg_%1$s,TOTAL', crc32hex($sources[$i])); | 35 | $rrdgraph[] = sprintf('VDEF:tot_%1$s=avg_%1$s,TOTAL', crc32hex($sources[$i])); |
36 | if ($this->percentile) | 36 | if ($this->percentile) |
37 | $rrdgraph[] = sprintf('VDEF:pct_%1$s=avg_%1$s_raw,%2$s,PERCENT', crc32hex($sources[$i]), $this->percentile); | 37 | $rrdgraph[] = sprintf('VDEF:pct_%1$s=avg_%1$s,%2$s,PERCENT', crc32hex($sources[$i]), $this->percentile); |
38 | $i++; | 38 | $i++; |
39 | } | 39 | } |
40 | } | 40 | } |