# collectd_draw_meta_line did not merge rrd_opts as the stack function # does. --- a/html/includes/collectd/functions.php +++ b/html/includes/collectd/functions.php @@ -787,13 +787,14 @@ $cmd = array(RRDTOOL, 'graph', '-', '-E', '-a', 'PNG', '-w', $config['rrd_width'], '-h', $config['rrd_height']); $cmd = array('-', '-E', '-a', 'PNG', '-w', $config['rrd_width'], '-h', $config['rrd_height']); + if($config['rrd_width'] <= "300") { $small_opts = array ('--font', 'LEGEND:7:mono', '--font', 'AXIS:6:mono', '--font-render-mode', 'normal'); $cmd = array_merge($cmd, $small_opts); } - + $cmd = array_merge($cmd, $config['rrd_opts_array'], $opts['rrd_opts']); $max_inst_name = 0; foreach ($sources as &$inst_data) {