diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-09-16 09:41:37 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-09-16 09:41:37 -0300 |
commit | 8f097bddc06e876d1c7b07d433abce324d331fcc (patch) | |
tree | bcc0b1f9db6f6843fe4d3eb90aca988c8172bd46 /usr/local/www | |
parent | cc98be5a836e24ceef0d64329003e0ad7582f3cd (diff) | |
parent | d02491e632091a983ddecdcca8fa477c594affac (diff) | |
download | pfsense-8f097bddc06e876d1c7b07d433abce324d331fcc.zip pfsense-8f097bddc06e876d1c7b07d433abce324d331fcc.tar.gz |
Merge pull request #1282 from ExolonDX/branch_master_06
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/status_rrd_graph.php | 10 |
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)); |