summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph_img.php
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2013-07-01 15:38:32 -0700
committerRenato Botelho <garga@FreeBSD.org>2013-07-02 06:50:32 -0300
commit086d941dd62557981c0207d94cdca56898461d47 (patch)
treef8710af6bf727661194a03eae3ba9487f16320b1 /usr/local/www/status_rrd_graph_img.php
parent0bd85300e62d6a722b03b09768c358e92f389450 (diff)
downloadpfsense-086d941dd62557981c0207d94cdca56898461d47.zip
pfsense-086d941dd62557981c0207d94cdca56898461d47.tar.gz
Archive start is “now” minus archive length. Not “end” minus archive length. Sometimes "end" is not "now".
Diffstat (limited to 'usr/local/www/status_rrd_graph_img.php')
-rw-r--r--usr/local/www/status_rrd_graph_img.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php
index fa3f43f..04ad09b 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -112,7 +112,7 @@ $defOptions = array(
/* always set the average to the highest value as a fallback */
$average = 720 * 60;
foreach($archives as $rra => $value) {
- $archivestart = $end - ($rra * 60 * $value);
+ $archivestart = $now - ($rra * 60 * $value);
if($archivestart <= $start) {
$average = $rra * 60;
break;
OpenPOWER on IntegriCloud