diff options
| author | Ćukasz Kostka | 2014-08-15 00:13:54 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2014-08-25 23:32:22 +0200 |
| commit | 2c5c2a62e10d5aadef9908b03908dffe9c26e2ad (patch) | |
| tree | 78c8e11f470b0f71cc088d151292d72aa62e1f72 /type | |
| parent | fix rrd_escape() not escaping colons (diff) | |
| download | apt-panopticon_cgp-2c5c2a62e10d5aadef9908b03908dffe9c26e2ad.zip apt-panopticon_cgp-2c5c2a62e10d5aadef9908b03908dffe9c26e2ad.tar.gz apt-panopticon_cgp-2c5c2a62e10d5aadef9908b03908dffe9c26e2ad.tar.bz2 apt-panopticon_cgp-2c5c2a62e10d5aadef9908b03908dffe9c26e2ad.tar.xz | |
move " on <HOSTNAME>" suffix in graph title to JSON
Closes #101
Diffstat (limited to 'type')
| -rw-r--r-- | type/Base.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/type/Base.class.php b/type/Base.class.php index 35d6e8b..7ee547e 100644 --- a/type/Base.class.php +++ b/type/Base.class.php | |||
| @@ -18,7 +18,7 @@ class Type_Base { | |||
| 18 | var $rrd_vertical; | 18 | var $rrd_vertical; |
| 19 | var $rrd_format = '%5.1lf%s'; | 19 | var $rrd_format = '%5.1lf%s'; |
| 20 | var $scale = 1; | 20 | var $scale = 1; |
| 21 | var $base; | 21 | var $base; |
| 22 | var $width; | 22 | var $width; |
| 23 | var $height; | 23 | var $height; |
| 24 | var $graph_type; | 24 | var $graph_type; |
| @@ -288,7 +288,7 @@ class Type_Base { | |||
| 288 | '-w', is_numeric($this->width) ? $this->width : 400, | 288 | '-w', is_numeric($this->width) ? $this->width : 400, |
| 289 | '-h', is_numeric($this->height) ? $this->height : 175, | 289 | '-h', is_numeric($this->height) ? $this->height : 175, |
| 290 | '-l', '0', | 290 | '-l', '0', |
| 291 | '-t', "{$this->rrd_title} on {$this->args['host']}" | 291 | '-t', $this->rrd_title |
| 292 | )); | 292 | )); |
| 293 | if ($this->rrd_vertical) { | 293 | if ($this->rrd_vertical) { |
| 294 | $rrdgraph[] = '-v'; | 294 | $rrdgraph[] = '-v'; |
