From 086d941dd62557981c0207d94cdca56898461d47 Mon Sep 17 00:00:00 2001 From: N0YB Date: Mon, 1 Jul 2013 15:38:32 -0700 Subject: =?UTF-8?q?Archive=20start=20is=20=E2=80=9Cnow=E2=80=9D=20minus=20?= =?UTF-8?q?archive=20length.=20=20Not=20=E2=80=9Cend=E2=80=9D=20minus=20ar?= =?UTF-8?q?chive=20length.=20=20Sometimes=20"end"=20is=20not=20"now".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/local/www/status_rrd_graph_img.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1