From 074589c36937a468587abe37bc4ce0fbddf80b20 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Wed, 5 Sep 2012 16:07:44 +0200 Subject: apply datasize (bytes/bits) only to network related data As discussed in https://github.com/pommi/CGP/pull/1. --- plugin/processes.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'plugin/processes.php') diff --git a/plugin/processes.php b/plugin/processes.php index c66d3fb..dca00b7 100644 --- a/plugin/processes.php +++ b/plugin/processes.php @@ -63,8 +63,7 @@ switch($obj->args['type']) 'value' => '0000ff', ); $obj->rrd_title = sprintf('Text Resident Set (%s)', $obj->args['pinstance']); - $obj->rrd_vertical = ucfirst($CONFIG['datasize']); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'Bytes'; break; case 'ps_count': @@ -106,8 +105,7 @@ switch($obj->args['type']) 'write' => '00b000', ); $obj->rrd_title = sprintf('Disk Traffic (%s)', $obj->args['pinstance']); - $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['datasize'])); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'Bytes per second'; break; case 'ps_disk_ops': @@ -132,8 +130,7 @@ switch($obj->args['type']) 'value' => '0000ff', ); $obj->rrd_title = sprintf('Data Resident Set (%s)', $obj->args['pinstance']); - $obj->rrd_vertical = ucfirst($CONFIG['datasize']); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'Bytes'; break; case 'ps_pagefaults': @@ -158,8 +155,7 @@ switch($obj->args['type']) 'value' => '0000ff', ); $obj->rrd_title = sprintf('Resident Segment Size (%s)', $obj->args['pinstance']); - $obj->rrd_vertical = ucfirst($CONFIG['datasize']); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'Bytes'; break; case 'ps_stacksize': @@ -170,8 +166,7 @@ switch($obj->args['type']) 'value' => '0000ff', ); $obj->rrd_title = sprintf('Stacksize (%s)', $obj->args['pinstance']); - $obj->rrd_vertical = ucfirst($CONFIG['datasize']); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'Bytes'; break; case 'ps_vm': @@ -182,8 +177,7 @@ switch($obj->args['type']) 'value' => '0000ff', ); $obj->rrd_title = sprintf('Virtual Memory (%s)', $obj->args['pinstance']); - $obj->rrd_vertical = ucfirst($CONFIG['datasize']); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'Bytes'; break; } -- cgit v1.1