data_sources = array('value'); switch($_GET['t']) { case 'ipt_bytes': $obj->rrd_title = 'Bytes'; break; case 'ipt_packets': $obj->rrd_title = 'Packets'; break; } $obj->rrd_vertical = ''; $obj->rrd_format = '%5.1lf%s'; collectd_flush($obj->identifiers); $obj->rrd_graph();