diff options
author | Pim van den Berg | 2014-04-28 20:25:54 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-04-28 20:25:54 +0200 |
commit | 77ca9bf147855eabe73820c6a7e4c6451a238e5a (patch) | |
tree | 3f03dea48383fd4a54ea14c7fa8b9ed08fc839ea | |
parent | plugin/df: fix support for collectd 4 (diff) | |
download | apt-panopticon_cgp-77ca9bf147855eabe73820c6a7e4c6451a238e5a.zip apt-panopticon_cgp-77ca9bf147855eabe73820c6a7e4c6451a238e5a.tar.gz apt-panopticon_cgp-77ca9bf147855eabe73820c6a7e4c6451a238e5a.tar.bz2 apt-panopticon_cgp-77ca9bf147855eabe73820c6a7e4c6451a238e5a.tar.xz |
plugin/memory: add support for osx/bsd
Closes: https://github.com/pommi/CGP/issues/67
-rw-r--r-- | plugin/memory.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/memory.php b/plugin/memory.php index ce973db..83f2b42 100644 --- a/plugin/memory.php +++ b/plugin/memory.php | |||
@@ -17,17 +17,25 @@ $obj = new Type_GenericStacked($CONFIG); | |||
17 | $obj->order = array('free', 'buffered', 'cached', 'locked', 'used'); | 17 | $obj->order = array('free', 'buffered', 'cached', 'locked', 'used'); |
18 | $obj->ds_names = array( | 18 | $obj->ds_names = array( |
19 | 'free' => 'Free', | 19 | 'free' => 'Free', |
20 | 'inactive' => 'Inactive', | ||
20 | 'cached' => 'Cached', | 21 | 'cached' => 'Cached', |
22 | 'cache' => 'Cache', | ||
21 | 'buffered' => 'Buffered', | 23 | 'buffered' => 'Buffered', |
22 | 'locked' => 'Locked', | 24 | 'locked' => 'Locked', |
23 | 'used' => 'Used', | 25 | 'used' => 'Used', |
26 | 'active' => 'Active', | ||
27 | 'wired' => 'Wired', | ||
24 | ); | 28 | ); |
25 | $obj->colors = array( | 29 | $obj->colors = array( |
26 | 'free' => '00e000', | 30 | 'free' => '00e000', |
31 | 'inactive' => '00b000', | ||
27 | 'cached' => '0000ff', | 32 | 'cached' => '0000ff', |
33 | 'cache' => '0000ff', | ||
28 | 'buffered' => 'ffb000', | 34 | 'buffered' => 'ffb000', |
29 | 'locked' => 'ff00ff', | 35 | 'locked' => 'ff00ff', |
30 | 'used' => 'ff0000', | 36 | 'used' => 'ff0000', |
37 | 'active' => 'ff4300', | ||
38 | 'wired' => 'ff0000', | ||
31 | ); | 39 | ); |
32 | 40 | ||
33 | $obj->rrd_title = 'Physical memory utilization'; | 41 | $obj->rrd_title = 'Physical memory utilization'; |