summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph_img.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/status_rrd_graph_img.php')
-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 04ad09b..8235ccb 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