summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-07-16 19:56:56 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-07-16 19:56:56 +0000
commit7828fd5be87a4bead7aed74957dce522590c884b (patch)
treee4037db9af9f4cd04213c01fba5d258f902dc5c9 /usr/local/www
parentbce5535c6b61fb0811daff10ef8fe9ef8bc08f22 (diff)
downloadpfsense-7828fd5be87a4bead7aed74957dce522590c884b.zip
pfsense-7828fd5be87a4bead7aed74957dce522590c884b.tar.gz
Keep longer archives, allow for a 4 year span
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/status_rrd_graph.php3
-rw-r--r--usr/local/www/status_rrd_graph_img.php11
2 files changed, 8 insertions, 6 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index f5e4459..96efa1e 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -75,6 +75,7 @@ $databases = array_merge($dbheader, $databases);
$styles = array('inverse' => 'Inverse',
'absolute' => 'Absolute');
+$periods = array("4h", "16h", "48h", "32d", "6m", "1y", "4y");
$pgtitle = gettext("Status: RRD Graphs");
include("head.inc");
@@ -169,8 +170,6 @@ include("head.inc");
<?php
- $periods = array("4h", "16h", "48h", "32d", "6m", "16m");
-
foreach($periods as $period => $interval) {
/* check which databases are valid for our category */
foreach($databases as $curdatabase) {
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php
index c7cbe85..fdf07a9 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -56,7 +56,7 @@ $search = array("-", ".rrd", $curif);
$replace = array(" :: ", "", $friendly);
$prettydb = ucwords(str_replace($search, $replace, $curdatabase));
-$periods = array("4h", "16h", "48h", "32d", "6m", "16m");
+$periods = array("4h", "16h", "48h", "32d", "6m", "1y", "4y");
$found = 0;
foreach($periods as $period) if($period == $interval) $found = 1;
@@ -80,9 +80,12 @@ $graphs['32d']['scale'] = "DAY:1:WEEK:1:WEEK:1:0:Week %W";
$graphs['6m']['seconds'] = 16070400;
$graphs['6m']['average'] = 43200;
$graphs['6m']['scale'] = "WEEK:1:MONTH:1:MONTH:1:0:%b";
-$graphs['16m']['seconds'] = 42854400;
-$graphs['16m']['average'] = 43200;
-$graphs['16m']['scale'] = "MONTH:1:MONTH:1:MONTH:1:0:%b";
+$graphs['1y']['seconds'] = 31622400;
+$graphs['1y']['average'] = 43200;
+$graphs['1y']['scale'] = "MONTH:1:MONTH:3:MONTH:1:0:%b";
+$graphs['4y']['seconds'] = 126489600;
+$graphs['4y']['average'] = 86400;
+$graphs['4y']['scale'] = "MONTH:1:YEAR:1:MONTH:3:0:%b";
/* generate the graphs when we request the page. */
$seconds = $graphs[$interval]['seconds'];
OpenPOWER on IntegriCloud