aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/filecount.php
diff options
context:
space:
mode:
authorPim van den Berg2012-09-05 16:07:44 +0200
committerPim van den Berg2012-09-05 16:10:39 +0200
commit074589c36937a468587abe37bc4ce0fbddf80b20 (patch)
tree921ffd1e49dde8bd21f625409f12d70251f3204b /plugin/filecount.php
parentplugin: add snmp plugin (diff)
downloadapt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.zip
apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.tar.gz
apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.tar.bz2
apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.tar.xz
apply datasize (bytes/bits) only to network related data
As discussed in https://github.com/pommi/CGP/pull/1.
Diffstat (limited to '')
-rw-r--r--plugin/filecount.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/filecount.php b/plugin/filecount.php
index 68545e7..2c318a9 100644
--- a/plugin/filecount.php
+++ b/plugin/filecount.php
@@ -23,8 +23,7 @@ switch($obj->args['type']) {
23 $obj->ds_names = array('value' => 'Size'); 23 $obj->ds_names = array('value' => 'Size');
24 $obj->colors = array('value' => '0000ff'); 24 $obj->colors = array('value' => '0000ff');
25 $obj->rrd_title = sprintf('Filecount: size (%s)', $obj->args['pinstance']); 25 $obj->rrd_title = sprintf('Filecount: size (%s)', $obj->args['pinstance']);
26 $obj->rrd_vertical = ucfirst($CONFIG['datasize']); 26 $obj->rrd_vertical = 'Bytes';
27 $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1;
28 break; 27 break;
29 case 'files': 28 case 'files':
30 $obj->ds_names = array('value' => 'Files'); 29 $obj->ds_names = array('value' => 'Files');