aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type
diff options
context:
space:
mode:
authorStephen Kent2014-03-21 11:50:41 -0700
committerPim van den Berg2015-06-22 10:45:39 +0200
commit87777fea84dbd45d5f66fa64926d53900bd574b7 (patch)
tree332fe029c73ec8074b139ecfe24ea368795f7ced /type
parentinc/functions: a plugin/type instance may contain a dot (diff)
downloadapt-panopticon_cgp-87777fea84dbd45d5f66fa64926d53900bd574b7.zip
apt-panopticon_cgp-87777fea84dbd45d5f66fa64926d53900bd574b7.tar.gz
apt-panopticon_cgp-87777fea84dbd45d5f66fa64926d53900bd574b7.tar.bz2
apt-panopticon_cgp-87777fea84dbd45d5f66fa64926d53900bd574b7.tar.xz
Don't show overlap AREA on Generic IO graphs when negative_io is set
Diffstat (limited to 'type')
-rw-r--r--type/GenericIO.class.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/type/GenericIO.class.php b/type/GenericIO.class.php
index 3a29948..b22b6d0 100644
--- a/type/GenericIO.class.php
+++ b/type/GenericIO.class.php
@@ -51,12 +51,14 @@ class Type_GenericIO extends Type_Base {
51 $i++; 51 $i++;
52 } 52 }
53 53
54 $rrdgraph[] = sprintf('AREA:overlap#%s', 54 if (!$this->negative_io) {
55 $this->get_faded_color( 55 $rrdgraph[] = sprintf('AREA:overlap#%s',
56 $this->get_faded_color($this->colors[$sources[0]]), 56 $this->get_faded_color(
57 $this->get_faded_color($this->colors[$sources[1]]) 57 $this->get_faded_color($this->colors[$sources[0]]),
58 ) 58 $this->get_faded_color($this->colors[$sources[1]])
59 ); 59 )
60 );
61 }
60 62
61 $i = 0; 63 $i = 0;
62 foreach($sources as $source) { 64 foreach($sources as $source) {