From 62bcba251949c0b30b5d196a9c0279165c716ee5 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 3 Oct 2009 22:52:33 +0200 Subject: cpu graph for hosts running a 2.4 kernel There was no cpu graph shown with hosts running a 2.4 kernel, because all defined cpu states were needed. --- type/GenericStacked.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'type') diff --git a/type/GenericStacked.class.php b/type/GenericStacked.class.php index 99f05eb..28f0552 100644 --- a/type/GenericStacked.class.php +++ b/type/GenericStacked.class.php @@ -14,7 +14,10 @@ class Type_GenericStacked extends Type_Default { $rrdgraph[] = sprintf('-s -%d', is_numeric($this->seconds) ? $this->seconds : 86400); if (is_array($this->args['tinstance'])) - $array = is_array($this->order) ? $this->order : $this->args['tinstance']; + if (is_array($this->order)) + $array = array_intersect($this->order, $this->args['tinstance']); + else + $array = $this->args['tinstance']; else $array = $this->data_sources; -- cgit v1.1