aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
authorPim van den Berg2010-05-13 14:10:40 +0200
committerPim van den Berg2010-05-13 14:16:12 +0200
commit40f5066b9f964601ac718250bdf88f1b3c7947f2 (patch)
tree088ac5c82a3d2f2c859a5d1b6dac70104e8986ed /plugin
parentfix: renumber keys of intersected array in function rrd_get_sources (diff)
downloadapt-panopticon_cgp-40f5066b9f964601ac718250bdf88f1b3c7947f2.zip
apt-panopticon_cgp-40f5066b9f964601ac718250bdf88f1b3c7947f2.tar.gz
apt-panopticon_cgp-40f5066b9f964601ac718250bdf88f1b3c7947f2.tar.bz2
apt-panopticon_cgp-40f5066b9f964601ac718250bdf88f1b3c7947f2.tar.xz
plugin/memory: add locked state
Solaris uses 3 memory states: free, locked and used. Reported by: Edmondo Tommasina
Diffstat (limited to 'plugin')
-rw-r--r--plugin/memory.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugin/memory.php b/plugin/memory.php
index 48a3048..71e395c 100644
--- a/plugin/memory.php
+++ b/plugin/memory.php
@@ -14,17 +14,19 @@ require_once 'inc/collectd.inc.php';
14# memory/memory-used.rrd 14# memory/memory-used.rrd
15 15
16$obj = new Type_GenericStacked($CONFIG); 16$obj = new Type_GenericStacked($CONFIG);
17$obj->order = array('free', 'buffered', 'cached', '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 'cached' => 'Cached ', 20 'cached' => 'Cached ',
21 'buffered' => 'Buffered', 21 'buffered' => 'Buffered',
22 'used' => 'Used ', 22 'locked' => 'Locked ',
23 'used' => 'Used ',
23); 24);
24$obj->colors = array( 25$obj->colors = array(
25 'free' => '00e000', 26 'free' => '00e000',
26 'cached' => '0000ff', 27 'cached' => '0000ff',
27 'buffered' => 'ffb000', 28 'buffered' => 'ffb000',
29 'locked' => 'ff00ff',
28 'used' => 'ff0000', 30 'used' => 'ff0000',
29); 31);
30$obj->width = $width; 32$obj->width = $width;