diff options
author | Pim van den Berg | 2014-05-03 18:15:12 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-05-03 19:21:36 +0200 |
commit | edae75c21a8f657dd6cc9ace9e8e844ef337a951 (patch) | |
tree | da0c2b4a1ef35a3d2d8c129925e257f6a6f7fbe3 /plugin/vmem.php | |
parent | type/base: set default values for rrd_title and rrd_format (diff) | |
download | apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.zip apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.gz apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.bz2 apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.xz |
rename ds_names and dsname to legend
This had nothing to do with an RRD data source.
Diffstat (limited to '')
-rw-r--r-- | plugin/vmem.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/vmem.php b/plugin/vmem.php index 8fb81ce..f66272b 100644 --- a/plugin/vmem.php +++ b/plugin/vmem.php | |||
@@ -20,14 +20,14 @@ switch($obj->args['type']) { | |||
20 | $obj->data_sources = array('minflt', 'majflt'); | 20 | $obj->data_sources = array('minflt', 'majflt'); |
21 | $obj->colors = array('minflt' => '0000f0', | 21 | $obj->colors = array('minflt' => '0000f0', |
22 | 'majflt' => 'f00000'); | 22 | 'majflt' => 'f00000'); |
23 | $obj->ds_names = array('minflt' => 'Minor', | 23 | $obj->legend = array('minflt' => 'Minor', |
24 | 'majflt' => 'Major'); | 24 | 'majflt' => 'Major'); |
25 | $obj->rrd_title = 'Page faults'; | 25 | $obj->rrd_title = 'Page faults'; |
26 | $obj->rrd_vertical = ''; | 26 | $obj->rrd_vertical = ''; |
27 | break; | 27 | break; |
28 | case 'vmpage_io': | 28 | case 'vmpage_io': |
29 | $obj->data_sources = array('in', 'out'); | 29 | $obj->data_sources = array('in', 'out'); |
30 | $obj->ds_names = array('memory-in' => 'Memory (in)', | 30 | $obj->legend = array('memory-in' => 'Memory (in)', |
31 | 'memory-out' => 'Memory (out)', | 31 | 'memory-out' => 'Memory (out)', |
32 | 'swap-in' => 'Swap (in)', | 32 | 'swap-in' => 'Swap (in)', |
33 | 'swap-out' => 'Swap (out)'); | 33 | 'swap-out' => 'Swap (out)'); |