diff options
author | Pim van den Berg | 2009-10-03 22:52:33 +0200 |
---|---|---|
committer | Pim van den Berg | 2009-10-03 23:17:18 +0200 |
commit | 62bcba251949c0b30b5d196a9c0279165c716ee5 (patch) | |
tree | 25d15a156c1aa00418792e523d5ecc20a2fb3692 /type/GenericStacked.class.php | |
parent | make width and heigth of graphs configurable (diff) | |
download | apt-panopticon_cgp-62bcba251949c0b30b5d196a9c0279165c716ee5.zip apt-panopticon_cgp-62bcba251949c0b30b5d196a9c0279165c716ee5.tar.gz apt-panopticon_cgp-62bcba251949c0b30b5d196a9c0279165c716ee5.tar.bz2 apt-panopticon_cgp-62bcba251949c0b30b5d196a9c0279165c716ee5.tar.xz |
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.
Diffstat (limited to 'type/GenericStacked.class.php')
-rw-r--r-- | type/GenericStacked.class.php | 5 |
1 files changed, 4 insertions, 1 deletions
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 { | |||
14 | $rrdgraph[] = sprintf('-s -%d', is_numeric($this->seconds) ? $this->seconds : 86400); | 14 | $rrdgraph[] = sprintf('-s -%d', is_numeric($this->seconds) ? $this->seconds : 86400); |
15 | 15 | ||
16 | if (is_array($this->args['tinstance'])) | 16 | if (is_array($this->args['tinstance'])) |
17 | $array = is_array($this->order) ? $this->order : $this->args['tinstance']; | 17 | if (is_array($this->order)) |
18 | $array = array_intersect($this->order, $this->args['tinstance']); | ||
19 | else | ||
20 | $array = $this->args['tinstance']; | ||
18 | else | 21 | else |
19 | $array = $this->data_sources; | 22 | $array = $this->data_sources; |
20 | 23 | ||