summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-10-16 10:41:24 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-10-16 10:41:24 +1100
commit257e0cf646dc1a43286ce510afb58f56baf1eccd (patch)
tree306ff899d822c696b28cd495ce27493777776ad8 /templates
parent1d1f391c5ee065020c25b3ca3b2459ee423d8665 (diff)
Fixed buggy rrdtool theme.
Diffstat (limited to 'templates')
-rw-r--r--templates/themes/rrdtool/theme.php16
1 files 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
+?>