Attempt at fixing RRDTool theme...

This commit is contained in:
Savetheinternet 2011-10-16 10:56:13 +11:00
parent 257e0cf646
commit 74fa468285

View File

@ -38,7 +38,7 @@
// Create graph // Create graph
if(!rrd_create($file, Array( if(!rrd_create($file, Array(
'-s ' . $this->interval, '-s ' . $this->interval,
'DS:posts:GAUGE:' . ($this->interval) . ':0:10000', 'DS:posts:GAUGE:' . ($this->interval * 2) . ':0:10000',
'RRA:MIN:0:1:' . (3600/$this->interval), // hour 'RRA:MIN:0:1:' . (3600/$this->interval), // hour
'RRA:MIN:0:1:' . (86400/$this->interval), // day 'RRA:MIN:0:1:' . (86400/$this->interval), // day
@ -68,7 +68,7 @@
$query->bindValue(':time', time() - $this->interval, PDO::PARAM_INT); $query->bindValue(':time', time() - $this->interval, PDO::PARAM_INT);
$query->execute() or error(db_error($query)); $query->execute() or error(db_error($query));
$count = $query->fetch(); $count = $query->fetch();
$count = $count['count']; $count = $count['count'] / 2;
if(!rrd_update($file, Array( if(!rrd_update($file, Array(
'-t', '-t',