From 257e0cf646dc1a43286ce510afb58f56baf1eccd Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 16 Oct 2011 10:41:24 +1100 Subject: [PATCH] Fixed buggy rrdtool theme. --- templates/themes/rrdtool/theme.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/themes/rrdtool/theme.php b/templates/themes/rrdtool/theme.php index bc317f59..bf788bc1 100644 --- a/templates/themes/rrdtool/theme.php +++ b/templates/themes/rrdtool/theme.php @@ -38,24 +38,24 @@ // Create graph if(!rrd_create($file, Array( '-s ' . $this->interval, - 'DS:posts:GAUGE:' . ($this->interval*2) . ':0:10000', + 'DS:posts:GAUGE:' . ($this->interval) . ':0:10000', 'RRA:MIN:0:1:' . (3600/$this->interval), // hour 'RRA:MIN:0:1:' . (86400/$this->interval), // day - 'RRA:MIN:0:1:' . (604800/$this->interval), // week - 'RRA:MIN:0:60:' . (2592000/$this->interval), // month + 'RRA:MIN:0:30:' . (604800/$this->interval), // week + 'RRA:MIN:0:120:' . (2592000/$this->interval), // month 'RRA:MIN:0:1440:' . (31536000/$this->interval), // year 'RRA:AVERAGE:0:1:' . (3600/$this->interval), // hour 'RRA:AVERAGE:0:1:' . (86400/$this->interval), // day - 'RRA:AVERAGE:0:1:' . (604800/$this->interval), // week - 'RRA:AVERAGE:0:60:' . (2592000/$this->interval), // month + 'RRA:AVERAGE:0:60:' . (604800/$this->interval), // week + 'RRA:AVERAGE:0:120:' . (2592000/$this->interval), // month 'RRA:AVERAGE:0:1440:' . (31536000/$this->interval), // year 'RRA:MAX:0:1:' . (3600/$this->interval), // hour 'RRA:MAX:0:1:' . (86400/$this->interval), // day - 'RRA:MAX:0:1:' . (604800/$this->interval), // week - 'RRA:MAX:0:60:' . (2592000/$this->interval), // month + 'RRA:MAX:0:30:' . (604800/$this->interval), // week + 'RRA:MAX:0:120:' . (2592000/$this->interval), // month 'RRA:MAX:0:1440:' . (31536000/$this->interval), // year ))) error('RRDtool failed: ' . htmlentities(rrd_error())); @@ -170,4 +170,4 @@ } }; -?> \ No newline at end of file +?>