diff options
author | N0YB <Al_Stu@Frontier.com> | 2013-07-01 15:38:32 -0700 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-07-02 06:50:32 -0300 |
commit | 086d941dd62557981c0207d94cdca56898461d47 (patch) | |
tree | f8710af6bf727661194a03eae3ba9487f16320b1 /usr/local/www/status_rrd_graph_img.php | |
parent | 0bd85300e62d6a722b03b09768c358e92f389450 (diff) | |
download | pfsense-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.php | 2 |
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; |