From 5a138d4c0464b591177cf523ebb8e0603e32d650 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 28 Dec 2009 15:47:42 +0100 Subject: replace duplicate code by function rrd_options --- type/GenericStacked.class.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'type/GenericStacked.class.php') diff --git a/type/GenericStacked.class.php b/type/GenericStacked.class.php index 28f0552..f024336 100644 --- a/type/GenericStacked.class.php +++ b/type/GenericStacked.class.php @@ -5,13 +5,7 @@ require_once 'Default.class.php'; class Type_GenericStacked extends Type_Default { function rrd_gen_graph() { - $rrdgraph[] = '/usr/bin/rrdtool graph - -a PNG'; - $rrdgraph[] = sprintf('-w %d', is_numeric($this->width) ? $this->width : 400); - $rrdgraph[] = sprintf('-h %d', is_numeric($this->heigth) ? $this->heigth : 175); - $rrdgraph[] = '-l 0'; - $rrdgraph[] = sprintf('-t "%s"', $this->rrd_title); - $rrdgraph[] = sprintf('-v "%s"', $this->rrd_vertical); - $rrdgraph[] = sprintf('-s -%d', is_numeric($this->seconds) ? $this->seconds : 86400); + $rrdgraph = $this->rrd_options(); if (is_array($this->args['tinstance'])) if (is_array($this->order)) -- cgit v1.1