aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/memcached.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugin/memcached.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/memcached.php b/plugin/memcached.php
index e011c9e..accf6b3 100644
--- a/plugin/memcached.php
+++ b/plugin/memcached.php
@@ -37,7 +37,8 @@ switch(GET('t')) {
37 'free' => '0000ff', 37 'free' => '0000ff',
38 ); 38 );
39 $obj->rrd_title = 'Memcached Memory Usage'; 39 $obj->rrd_title = 'Memcached Memory Usage';
40 $obj->rrd_vertical = 'bytes'; 40 $obj->rrd_vertical = ucfirst($CONFIG['datasize']);
41 $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1;
41 break; 42 break;
42 43
43# memcached_command-(flush|get|set).rrd 44# memcached_command-(flush|get|set).rrd
@@ -104,7 +105,8 @@ switch(GET('t')) {
104 'tx' => '00b000', 105 'tx' => '00b000',
105 ); 106 );
106 $obj->rrd_title = 'Memcached Network Traffic'; 107 $obj->rrd_title = 'Memcached Network Traffic';
107 $obj->rrd_vertical = 'Bytes'; 108 $obj->rrd_vertical = ucfirst($CONFIG['datasize']);
109 $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1;
108 break; 110 break;
109# memcached_ops-(evictions|hits|misses).rrd 111# memcached_ops-(evictions|hits|misses).rrd
110 case 'memcached_ops': 112 case 'memcached_ops':