aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/swap.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/swap.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 'plugin/swap.php')
-rw-r--r--plugin/swap.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/swap.php b/plugin/swap.php
index dee5692..c24d90b 100644
--- a/plugin/swap.php
+++ b/plugin/swap.php
@@ -27,8 +27,7 @@ switch(GET('t')) {
27 'used' => 'ff0000', 27 'used' => 'ff0000',
28 ); 28 );
29 $obj->rrd_title = 'Swap utilization'; 29 $obj->rrd_title = 'Swap utilization';
30 $obj->rrd_vertical = ucfirst($CONFIG['datasize']); 30 $obj->rrd_vertical = 'Bytes';
31 $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1;
32 break; 31 break;
33 case 'swap_io': 32 case 'swap_io':
34 require_once 'type/GenericIO.class.php'; 33 require_once 'type/GenericIO.class.php';