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/filecount.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/filecount.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/filecount.php b/plugin/filecount.php index 5fa524d..ead8df8 100644 --- a/plugin/filecount.php +++ b/plugin/filecount.php | |||
| @@ -17,13 +17,13 @@ $obj->data_sources = array('value'); | |||
| 17 | 17 | ||
| 18 | switch($obj->args['type']) { | 18 | switch($obj->args['type']) { |
| 19 | case 'bytes': | 19 | case 'bytes': |
| 20 | $obj->ds_names = array('value' => 'Size'); | 20 | $obj->legend = array('value' => 'Size'); |
| 21 | $obj->colors = array('value' => '0000ff'); | 21 | $obj->colors = array('value' => '0000ff'); |
| 22 | $obj->rrd_title = sprintf('Filecount: size (%s)', $obj->args['pinstance']); | 22 | $obj->rrd_title = sprintf('Filecount: size (%s)', $obj->args['pinstance']); |
| 23 | $obj->rrd_vertical = 'Bytes'; | 23 | $obj->rrd_vertical = 'Bytes'; |
| 24 | break; | 24 | break; |
| 25 | case 'files': | 25 | case 'files': |
| 26 | $obj->ds_names = array('value' => 'Files'); | 26 | $obj->legend = array('value' => 'Files'); |
| 27 | $obj->colors = array('value' => 'f0a000'); | 27 | $obj->colors = array('value' => 'f0a000'); |
| 28 | $obj->rrd_title = sprintf('Filecount: number of files (%s)', $obj->args['pinstance']); | 28 | $obj->rrd_title = sprintf('Filecount: number of files (%s)', $obj->args['pinstance']); |
| 29 | $obj->rrd_vertical = 'Files'; | 29 | $obj->rrd_vertical = 'Files'; |
