aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/collectd.inc.php
diff options
context:
space:
mode:
authorVincent Brillault2014-06-24 20:05:59 +0200
committerVincent Brillault2014-06-28 18:29:13 +0200
commitcc2277e7fd5a1f55467c2b0130222e7b4bc07f0d (patch)
tree8c3c6f1f49c82101ed34769549881389214ab7bc /inc/collectd.inc.php
parenttype/base: replace array_merge by + sign to merge a fallback array (diff)
downloadapt-panopticon_cgp-cc2277e7fd5a1f55467c2b0130222e7b4bc07f0d.zip
apt-panopticon_cgp-cc2277e7fd5a1f55467c2b0130222e7b4bc07f0d.tar.gz
apt-panopticon_cgp-cc2277e7fd5a1f55467c2b0130222e7b4bc07f0d.tar.bz2
apt-panopticon_cgp-cc2277e7fd5a1f55467c2b0130222e7b4bc07f0d.tar.xz
Keep the list of plugins sorted
Diffstat (limited to 'inc/collectd.inc.php')
-rw-r--r--inc/collectd.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php
index bbed611..fda685d 100644
--- a/inc/collectd.inc.php
+++ b/inc/collectd.inc.php
@@ -95,6 +95,7 @@ function collectd_plugins($host) {
95 if (!in_array($item['p'], $plugins)) 95 if (!in_array($item['p'], $plugins))
96 $plugins[] = $item['p']; 96 $plugins[] = $item['p'];
97 } 97 }
98 sort($plugins);
98 99
99 return $plugins ? $plugins : false; 100 return $plugins ? $plugins : false;
100} 101}