diff options
author | Pim van den Berg | 2009-12-31 11:42:14 +0100 |
---|---|---|
committer | Pim van den Berg | 2009-12-31 12:39:43 +0100 |
commit | 853a4e939c99fb683983d947f4267bf249f7c05e (patch) | |
tree | cfffabaa43f218fbc29c2b00cc7ceb36168a8b90 /type | |
parent | replace duplicate code by function rrd_options (diff) | |
download | apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.zip apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.gz apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.bz2 apt-panopticon_cgp-853a4e939c99fb683983d947f4267bf249f7c05e.tar.xz |
always show 'on $host' in the rrd title
'on $host' doesn't have to be added manually to rrd_title anymore.
Diffstat (limited to 'type')
-rw-r--r-- | type/Default.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/type/Default.class.php b/type/Default.class.php index 817521a..6b1ab5c 100644 --- a/type/Default.class.php +++ b/type/Default.class.php | |||
@@ -89,7 +89,7 @@ class Type_Default { | |||
89 | $rrdgraph[] = sprintf('-w %d', is_numeric($this->width) ? $this->width : 400); | 89 | $rrdgraph[] = sprintf('-w %d', is_numeric($this->width) ? $this->width : 400); |
90 | $rrdgraph[] = sprintf('-h %d', is_numeric($this->heigth) ? $this->heigth : 175); | 90 | $rrdgraph[] = sprintf('-h %d', is_numeric($this->heigth) ? $this->heigth : 175); |
91 | $rrdgraph[] = '-l 0'; | 91 | $rrdgraph[] = '-l 0'; |
92 | $rrdgraph[] = sprintf('-t "%s"', $this->rrd_title); | 92 | $rrdgraph[] = sprintf('-t "%s on %s"', $this->rrd_title, $this->args['host']); |
93 | $rrdgraph[] = sprintf('-v "%s"', $this->rrd_vertical); | 93 | $rrdgraph[] = sprintf('-v "%s"', $this->rrd_vertical); |
94 | $rrdgraph[] = sprintf('-s -%d', is_numeric($this->seconds) ? $this->seconds : 86400); | 94 | $rrdgraph[] = sprintf('-s -%d', is_numeric($this->seconds) ? $this->seconds : 86400); |
95 | 95 | ||