From 87777fea84dbd45d5f66fa64926d53900bd574b7 Mon Sep 17 00:00:00 2001 From: Stephen Kent Date: Fri, 21 Mar 2014 11:50:41 -0700 Subject: Don't show overlap AREA on Generic IO graphs when negative_io is set --- type/GenericIO.class.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'type/GenericIO.class.php') 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 { $i++; } - $rrdgraph[] = sprintf('AREA:overlap#%s', - $this->get_faded_color( - $this->get_faded_color($this->colors[$sources[0]]), - $this->get_faded_color($this->colors[$sources[1]]) - ) - ); + if (!$this->negative_io) { + $rrdgraph[] = sprintf('AREA:overlap#%s', + $this->get_faded_color( + $this->get_faded_color($this->colors[$sources[0]]), + $this->get_faded_color($this->colors[$sources[1]]) + ) + ); + } $i = 0; foreach($sources as $source) { -- cgit v1.1