summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2013-07-06 23:32:17 -0700
committerRenato Botelho <garga@FreeBSD.org>2013-07-07 09:44:38 -0300
commita35c1cdfa3fe73a14fde5994de65addb632ed9af (patch)
tree683e90376528b0d00b7f6579113d75e4726cbada /usr/local/www/status_rrd_graph.php
parent63f0299537e4be096fed1eb28911d4a235d267c0 (diff)
downloadpfsense-a35c1cdfa3fe73a14fde5994de65addb632ed9af.zip
pfsense-a35c1cdfa3fe73a14fde5994de65addb632ed9af.tar.gz
Correct month, quarter (3 months), and 4 year RRD graphs length.
Longest possible month is 31 days, not 32. Longest possible quarter (3 months) is 92 days (30+31+31), not 93 (31+31+31). 4 Years is 1461 days (365 x 4 + 1), not 1464 (366 x 4). Except about once every century or so when leap year is skipped 4 years is then 1460 days. But that is not going to happen again for a very long time. Unfortunately pfSense, nor anyone alive today will probably still be alive by then.
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rwxr-xr-xusr/local/www/status_rrd_graph.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index 2cf22de..6f747d3 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -240,10 +240,10 @@ $graph_length = array(
"8hour" => 28800,
"day" => 86400,
"week" => 604800,
- "month" => 2764800,
- "quarter" => 8035200,
+ "month" => 2678400,
+ "quarter" => 7948800,
"year" => 31622400,
- "4year" => 126489600);
+ "4year" => 126230400);
$pgtitle = array(gettext("Status"),gettext("RRD Graphs"));
OpenPOWER on IntegriCloud