diff options
Diffstat (limited to '')
-rw-r--r-- | plugin/memcached.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugin/memcached.php b/plugin/memcached.php index 2230f3f..60887bc 100644 --- a/plugin/memcached.php +++ b/plugin/memcached.php | |||
@@ -37,8 +37,7 @@ 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 = ucfirst($CONFIG['datasize']); | 40 | $obj->rrd_vertical = 'bytes'; |
41 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | ||
42 | break; | 41 | break; |
43 | 42 | ||
44 | # memcached_command-(flush|get|set).rrd | 43 | # memcached_command-(flush|get|set).rrd |
@@ -105,8 +104,8 @@ switch(GET('t')) { | |||
105 | 'tx' => '00b000', | 104 | 'tx' => '00b000', |
106 | ); | 105 | ); |
107 | $obj->rrd_title = 'Memcached Network Traffic'; | 106 | $obj->rrd_title = 'Memcached Network Traffic'; |
108 | $obj->rrd_vertical = ucfirst($CONFIG['datasize']); | 107 | $obj->rrd_vertical = ucfirst($CONFIG['network_datasize']); |
109 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | 108 | $obj->scale = $CONFIG['network_datasize'] == 'bits' ? 8 : 1; |
110 | break; | 109 | break; |
111 | # memcached_ops-(evictions|hits|misses).rrd | 110 | # memcached_ops-(evictions|hits|misses).rrd |
112 | case 'memcached_ops': | 111 | case 'memcached_ops': |