changed interval to 2 minutes

This commit is contained in:
Savetheinternet 2011-06-07 21:03:22 +10:00
parent f812bdc376
commit 723a2683b5
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@
function rrdtool_install($settings) { function rrdtool_install($settings) {
global $config; 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')) { if(function_exists('system')) {
$crontab = tempnam($config['tmp'], 'tinyboard-rrdtool'); $crontab = tempnam($config['tmp'], 'tinyboard-rrdtool');

View File

@ -19,7 +19,7 @@
$this->boards = explode(' ', $settings['boards']); $this->boards = explode(' ', $settings['boards']);
$this->spans = Array('minute', 'hour', 'day', 'week', 'month'); $this->spans = Array('minute', 'hour', 'day', 'week', 'month');
$this->interval = 60; $this->interval = 120;
$this->height = 150; $this->height = 150;
$this->width = 700; $this->width = 700;
@ -36,7 +36,7 @@
// Create graph // Create graph
if(!rrd_create($file, Array( if(!rrd_create($file, Array(
'-s ' . $this->interval, '-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:1:2880',
'RRA:AVERAGE:0.5:30:672', 'RRA:AVERAGE:0.5:30:672',
'RRA:AVERAGE:0.5:120:732', 'RRA:AVERAGE:0.5:120:732',