From 74fa468285abaf73e973618b32e831db54193f32 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 16 Oct 2011 10:56:13 +1100 Subject: [PATCH] Attempt at fixing RRDTool theme... --- templates/themes/rrdtool/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/themes/rrdtool/theme.php b/templates/themes/rrdtool/theme.php index bf788bc1..91bc7f01 100644 --- a/templates/themes/rrdtool/theme.php +++ b/templates/themes/rrdtool/theme.php @@ -38,7 +38,7 @@ // Create graph if(!rrd_create($file, Array( '-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:' . (86400/$this->interval), // day @@ -68,7 +68,7 @@ $query->bindValue(':time', time() - $this->interval, PDO::PARAM_INT); $query->execute() or error(db_error($query)); $count = $query->fetch(); - $count = $count['count']; + $count = $count['count'] / 2; if(!rrd_update($file, Array( '-t',