diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-16 10:56:13 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-16 10:56:13 +1100 |
| commit | 74fa468285abaf73e973618b32e831db54193f32 (patch) | |
| tree | a1387123a4f8f17fef952403e55a3d78a0b2254d /templates | |
| parent | 257e0cf646dc1a43286ce510afb58f56baf1eccd (diff) | |
Attempt at fixing RRDTool theme...
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/themes/rrdtool/theme.php | 4 |
1 files 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', |
