summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-09-16 09:41:37 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-09-16 09:41:37 -0300
commit8f097bddc06e876d1c7b07d433abce324d331fcc (patch)
treebcc0b1f9db6f6843fe4d3eb90aca988c8172bd46
parentcc98be5a836e24ceef0d64329003e0ad7582f3cd (diff)
parentd02491e632091a983ddecdcca8fa477c594affac (diff)
downloadpfsense-8f097bddc06e876d1c7b07d433abce324d331fcc.zip
pfsense-8f097bddc06e876d1c7b07d433abce324d331fcc.tar.gz
Merge pull request #1282 from ExolonDX/branch_master_06
-rw-r--r--usr/local/www/status_rrd_graph.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index c6e58c2..bc20666 100644
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -245,16 +245,16 @@ foreach($databases as $database) {
$ui_databases = array_merge($dbheader, $databases);
$custom_databases = array_merge($dbheader_custom, $databases);
-$graphs = array("8hour", "day", "week", "month", "quarter", "year", "4year");
+$graphs = array("eighthour", "day", "week", "month", "quarter", "year", "fouryear");
$periods = array("absolute" => gettext("Absolute Timespans"), "current" => gettext("Current Period"), "previous" => gettext("Previous Period"));
$graph_length = array(
- "8hour" => 28800,
+ "eighthour" => 28800,
"day" => 86400,
"week" => 604800,
"month" => 2678400,
"quarter" => 7948800,
"year" => 31622400,
- "4year" => 126230400);
+ "fouryear" => 126230400);
$pgtitle = array(gettext("Status"),gettext("RRD Graphs"));
@@ -331,7 +331,7 @@ function get_dates($curperiod, $graph) {
$offset = 0;
}
switch($graph) {
- case "8hour":
+ case "eighthour":
if($curhour < 24)
$starthour = 16;
if($curhour < 16)
@@ -385,7 +385,7 @@ function get_dates($curperiod, $graph) {
if($offset != 0)
$end = mktime(0, 0, 0, 1, 0, (($curyear + $offset) +1));
break;
- case "4year":
+ case "fouryear":
$start = mktime(0, 0, 0, 1, 0, (($curyear - 3) + $offset));
if($offset != 0)
$end = mktime(0, 0, 0, 1, 0, (($curyear + $offset) +1));
OpenPOWER on IntegriCloud