diff options
Diffstat (limited to 'type/GenericStacked.class.php')
| -rw-r--r-- | type/GenericStacked.class.php | 8 |
1 files changed, 1 insertions, 7 deletions
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'; | |||
| 5 | class Type_GenericStacked extends Type_Default { | 5 | class Type_GenericStacked extends Type_Default { |
| 6 | 6 | ||
| 7 | function rrd_gen_graph() { | 7 | function rrd_gen_graph() { |
| 8 | $rrdgraph[] = '/usr/bin/rrdtool graph - -a PNG'; | 8 | $rrdgraph = $this->rrd_options(); |
| 9 | $rrdgraph[] = sprintf('-w %d', is_numeric($this->width) ? $this->width : 400); | ||
| 10 | $rrdgraph[] = sprintf('-h %d', is_numeric($this->heigth) ? $this->heigth : 175); | ||
| 11 | $rrdgraph[] = '-l 0'; | ||
| 12 | $rrdgraph[] = sprintf('-t "%s"', $this->rrd_title); | ||
| 13 | $rrdgraph[] = sprintf('-v "%s"', $this->rrd_vertical); | ||
| 14 | $rrdgraph[] = sprintf('-s -%d', is_numeric($this->seconds) ? $this->seconds : 86400); | ||
| 15 | 9 | ||
| 16 | if (is_array($this->args['tinstance'])) | 10 | if (is_array($this->args['tinstance'])) |
| 17 | if (is_array($this->order)) | 11 | if (is_array($this->order)) |
