summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2010-07-15 20:43:49 +0200
committersmos <seth.mos@dds.nl>2010-07-15 20:43:49 +0200
commit0423bf2c65f75ff73d6a2b0007e949dc6f49ac66 (patch)
tree9924e81721b517e8139ba5dcfbef115221ca39ad /usr/local/www/status_rrd_graph.php
parent6a8cf738d6fc852773a9049c6728453ad5dbca9f (diff)
downloadpfsense-0423bf2c65f75ff73d6a2b0007e949dc6f49ac66.zip
pfsense-0423bf2c65f75ff73d6a2b0007e949dc6f49ac66.tar.gz
round the date calculation result so that it results in 1 month instead
of 4 weeks which looks strange.
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rwxr-xr-xusr/local/www/status_rrd_graph.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index b467d8a..115d12c 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -197,11 +197,11 @@ function get_dates($curperiod, $graph) {
break;
case "year":
$start = mktime(0, 0, 0, 1, 0, ($curyear + $offset));
- $end = mktime(0, 0, 0, 1, 1, (($curyear + $offset) +1));
+ $end = mktime(0, 0, 0, 1, 0, (($curyear + $offset) +1));
break;
case "4year":
$start = mktime(0, 0, 0, 1, 0, (($curyear - 3) + $offset));
- $end = mktime(0, 0, 0, 1, 1, (($curyear + $offset) +1));
+ $end = mktime(0, 0, 0, 1, 0, (($curyear + $offset) +1));
break;
}
// echo "start $start ". date('l jS \of F Y h:i:s A', $start) .", end $end ". date('l jS \of F Y h:i:s A', $end) ."<br>";
OpenPOWER on IntegriCloud