summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-06-07 21:03:22 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-06-07 21:03:22 +1000
commit723a2683b5f677eabda54d65d581138638cb443d (patch)
treeef6cd336e4c3219264c52a9ee1331856abaa73a3
parentf812bdc3766df7e13c55601daabe51e6d363dbd6 (diff)
changed interval to 2 minutes
-rw-r--r--templates/themes/rrdtool/info.php2
-rw-r--r--templates/themes/rrdtool/theme.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/themes/rrdtool/info.php b/templates/themes/rrdtool/info.php
index 50d9ca04..4655d5bf 100644
--- a/templates/themes/rrdtool/info.php
+++ b/templates/themes/rrdtool/info.php
@@ -45,7 +45,7 @@
function rrdtool_install($settings) {
global $config;
- $job = '* * * * * php -q ' . str_replace('\\', '/', dirname(__FILE__)) . '/cron.php' . PHP_EOL;
+ $job = '*/2 * * * * php -q ' . str_replace('\\', '/', dirname(__FILE__)) . '/cron.php' . PHP_EOL;
if(function_exists('system')) {
$crontab = tempnam($config['tmp'], 'tinyboard-rrdtool');
diff --git a/templates/themes/rrdtool/theme.php b/templates/themes/rrdtool/theme.php
index 20c68c8e..bfa5bfec 100644
--- a/templates/themes/rrdtool/theme.php
+++ b/templates/themes/rrdtool/theme.php
@@ -19,7 +19,7 @@
$this->boards = explode(' ', $settings['boards']);
$this->spans = Array('minute', 'hour', 'day', 'week', 'month');
- $this->interval = 60;
+ $this->interval = 120;
$this->height = 150;
$this->width = 700;
@@ -36,7 +36,7 @@
// Create graph
if(!rrd_create($file, Array(
'-s ' . $this->interval,
- 'DS:posts:ABSOLUTE:120:0:100000000',
+ 'DS:posts:ABSOLUTE:' . ($this->interval*2) . ':0:100000000',
'RRA:AVERAGE:0.5:1:2880',
'RRA:AVERAGE:0.5:30:672',
'RRA:AVERAGE:0.5:120:732',