diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-07-16 19:56:56 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-07-16 19:56:56 +0000 |
commit | 7828fd5be87a4bead7aed74957dce522590c884b (patch) | |
tree | e4037db9af9f4cd04213c01fba5d258f902dc5c9 /usr/local/www/status_rrd_graph_img.php | |
parent | bce5535c6b61fb0811daff10ef8fe9ef8bc08f22 (diff) | |
download | pfsense-7828fd5be87a4bead7aed74957dce522590c884b.zip pfsense-7828fd5be87a4bead7aed74957dce522590c884b.tar.gz |
Keep longer archives, allow for a 4 year span
Diffstat (limited to 'usr/local/www/status_rrd_graph_img.php')
-rw-r--r-- | usr/local/www/status_rrd_graph_img.php | 11 |
1 files changed, 7 insertions, 4 deletions
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']; |