diff options
author | Pim van den Berg | 2013-05-10 22:01:08 +0200 |
---|---|---|
committer | Pim van den Berg | 2013-05-10 22:01:08 +0200 |
commit | f9b00eb98d6b3deec0231a54e56754e6579de3e6 (patch) | |
tree | 69c732856dff9b346866170dd868d29098355cf3 /type/Default.class.php | |
parent | import js directory from jsrrdgraph for client side graph rendering (diff) | |
download | apt-panopticon_cgp-f9b00eb98d6b3deec0231a54e56754e6579de3e6.zip apt-panopticon_cgp-f9b00eb98d6b3deec0231a54e56754e6579de3e6.tar.gz apt-panopticon_cgp-f9b00eb98d6b3deec0231a54e56754e6579de3e6.tar.bz2 apt-panopticon_cgp-f9b00eb98d6b3deec0231a54e56754e6579de3e6.tar.xz |
type: stick to the rrdgraph time specification
Reference: http://rrdtool.mirror.graemef.net/doc/rrdfetch.en.html#IAT_STYLE_TIME_SPECIFICATION
Diffstat (limited to 'type/Default.class.php')
-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 48852d4..b8fd95e 100644 --- a/type/Default.class.php +++ b/type/Default.class.php | |||
@@ -185,7 +185,7 @@ class Type_Default { | |||
185 | $rrdgraph[] = '-l 0'; | 185 | $rrdgraph[] = '-l 0'; |
186 | $rrdgraph[] = sprintf('-t "%s on %s"', $this->rrd_title, $this->args['host']); | 186 | $rrdgraph[] = sprintf('-t "%s on %s"', $this->rrd_title, $this->args['host']); |
187 | $rrdgraph[] = sprintf('-v "%s"', $this->rrd_vertical); | 187 | $rrdgraph[] = sprintf('-v "%s"', $this->rrd_vertical); |
188 | $rrdgraph[] = sprintf('-s -%d', is_numeric($this->seconds) ? $this->seconds : 86400); | 188 | $rrdgraph[] = sprintf('-s e-%d', is_numeric($this->seconds) ? $this->seconds : 86400); |
189 | 189 | ||
190 | return $rrdgraph; | 190 | return $rrdgraph; |
191 | } | 191 | } |