summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2013-07-01 15:42:19 -0700
committerN0YB <Al_Stu@Frontier.com>2013-07-01 15:42:19 -0700
commit24646d5750e3c1a87fecedc3072eabd830e4baf1 (patch)
tree8ce8e4ed8a55bcf3fa690eb3e446a09055c6c243 /usr
parent641f2f3c2480ae4bdaff9593e835d36873a70cf8 (diff)
downloadpfsense-24646d5750e3c1a87fecedc3072eabd830e4baf1.zip
pfsense-24646d5750e3c1a87fecedc3072eabd830e4baf1.tar.gz
Adjust archives array values to match sizes for average calculation.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/status_rrd_graph_img.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php
index aa4a5c9..2e0e7dc 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -96,10 +96,10 @@ $scales[16070400] = "WEEK:1:MONTH:1:MONTH:1:0:%b";
$scales[42854400] = "MONTH:1:MONTH:1:MONTH:1:0:%b";
$archives = array();
-$archives[1] = 1000;
-$archives[5] = 1000;
-$archives[60] = 1000;
-$archives[720] = 3000;
+$archives[1] = 1200;
+$archives[5] = 720;
+$archives[60] = 1860;
+$archives[1440] = 3652;
$defOptions = array(
'to' => 1,
@@ -110,7 +110,7 @@ $defOptions = array(
);
/* always set the average to the highest value as a fallback */
-$average = 720 * 60;
+$average = 1440 * 60;
foreach($archives as $rra => $value) {
$archivestart = $now - ($rra * 60 * $value);
if($archivestart <= $start) {
OpenPOWER on IntegriCloud