diff options
| author | Pim van den Berg | 2014-12-14 16:56:53 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2014-12-14 16:56:53 +0100 |
| commit | 032c76b85e33289d2d7cd64f9419ca97cf80e55c (patch) | |
| tree | 8fa1f769a51e2237684207481f1d83c62620dd34 /inc/collectd.inc.php | |
| parent | layout: make timeago smaller and give it some opacity (diff) | |
| download | apt-panopticon_cgp-032c76b85e33289d2d7cd64f9419ca97cf80e55c.zip apt-panopticon_cgp-032c76b85e33289d2d7cd64f9419ca97cf80e55c.tar.gz apt-panopticon_cgp-032c76b85e33289d2d7cd64f9419ca97cf80e55c.tar.bz2 apt-panopticon_cgp-032c76b85e33289d2d7cd64f9419ca97cf80e55c.tar.xz | |
inc/collectd: vmem/vmpage_io should be split to multiple graphs per type instance
Closes #113
Diffstat (limited to 'inc/collectd.inc.php')
| -rw-r--r-- | inc/collectd.inc.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index 201d8ce..1efd682 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php | |||
| @@ -142,10 +142,11 @@ function group_plugindata($plugindata) { | |||
| 142 | foreach ($plugindata as $item) { | 142 | foreach ($plugindata as $item) { |
| 143 | # backwards compatibility | 143 | # backwards compatibility |
| 144 | if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p'])) | 144 | if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p'])) |
| 145 | if ( | 145 | if (!( |
| 146 | $item['p'] != 'libvirt' && | 146 | $item['p'] == 'libvirt' |
| 147 | ($item['p'] != 'snmp' && $item['t'] != 'if_octets') | 147 | || ($item['p'] == 'snmp' && $item['t'] == 'if_octets') |
| 148 | ) | 148 | || ($item['p'] == 'vmem' && $item['t'] == 'vmpage_io') |
| 149 | )) | ||
| 149 | unset($item['ti']); | 150 | unset($item['ti']); |
| 150 | $data[] = $item; | 151 | $data[] = $item; |
| 151 | } | 152 | } |
